10835 tl: cast between incompatible function types

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

Information
Toomas Soome
illumos-gate
10835
0257a8a...
Reviewers
general
../../common/io/tl.c:712:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())tl_rsrv, /* qi_srvp */
  ^
../../common/io/tl.c:721: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 (*)())tl_wput, /* qi_putp */
  ^
../../common/io/tl.c:722:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())tl_wsrv, /* qi_srvp */
  ^
cc1: all warnings being treated as errors

  

Issues

  • 0
  • 154
  • 0
  • 154
Description From Last Updated
Gergő Mihály Doma
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...