11724 spppcomp: cast between incompatible function types

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

tsoome
illumos-gate
11724
f04561b...
general
../../common/io/ppp/spppcomp/spppcomp.c:125: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 (*)())spppcomp_rput, /* qi_putp */
  ^
../../common/io/ppp/spppcomp/spppcomp.c:126:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())spppcomp_rsrv, /* qi_srvp */
  ^
../../common/io/ppp/spppcomp/spppcomp.c:135: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 (*)())spppcomp_wput, /* qi_putp */
  ^
../../common/io/ppp/spppcomp/spppcomp.c:136:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())spppcomp_wsrv, /* qi_srvp */
  ^
cc1: all warnings being treated as errors


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

Status: Closed (submitted)

Loading...