Project

General

Profile

Bug #11598

pfmod: cast between incompatible function types

Added by Toomas Soome 25 days ago. Updated 12 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with gcc 8:

    ../../common/io/pfmod.c:107:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())pfrput, /* qi_putp */
      ^
    ../../common/io/pfmod.c:117:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())pfwput, /* qi_putp */
      ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 12 days ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit d9c462b2dd4afc98da9074ea6ace57ecd8035001

commit  d9c462b2dd4afc98da9074ea6ace57ecd8035001
Author: Toomas Soome <tsoome@me.com>
Date:   2019-09-03T19:46:18.000Z

    11598 pfmod: cast between incompatible function types
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF