10836 zcons: cast between incompatible function types

Review Request #1778 - Created April 20, 2019 and submitted

Information
Toomas Soome
illumos-gate
10836
9f80356...
Reviewers
general
../../common/io/zcons.c:224:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)()) zc_rsrv,
  ^
../../common/io/zcons.c:233: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 (*)()) zc_wput,
  ^
../../common/io/zcons.c:234:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)()) zc_wsrv,
  ^
cc1: all warnings being treated as errors

  
Gergő Mihály Doma
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...