11719 timod: cast between incompatible function types

Review Request #2323 — Created Sept. 20, 2019 and submitted

tsoome
illumos-gate
11719
fa4646e...
general
../../common/io/timod.c:326: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 (*)())timodrput,
  ^
../../common/io/timod.c:327:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())timodrsrv,
  ^
../../common/io/timod.c:335: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 (*)())timodwput,
  ^
../../common/io/timod.c:336:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())timodwsrv,
  ^
cc1: all warnings being treated as errors


citrus
  1. Ship It!
  2. 
      
marcel
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...