10423 bridge: cast between incompatible function types

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

tsoome
illumos-gate
10423
85ad81c...
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


andy_js
  1. Ship It!
  2. 
      
seeemef@mac.com
  1. Ship It!
  2. 
      
citrus
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...