10423 bridge: cast between incompatible function types

Review Request #1492 - Created Feb. 19, 2019 and submitted

Information
Toomas Soome
illumos-gate
10423
85ad81c...
Reviewers
general
../../common/io/bridge.c:223: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 (*)())dld_wput, /* qi_putp */
  ^
../../common/io/bridge.c:224:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())dld_wsrv, /* qi_srvp */
  ^
../../common/io/bridge.c:3472: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 (*)())bridge_wput, /* qi_putp */
  ^
cc1: all warnings being treated as errors

  
Andrew Stormont
C Fraire
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...