10422 conskbd: cast between incompatible function types

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

tsoome
illumos-gate
10422
3d54bbf...
general
../../common/io/conskbd.c:130:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())conskbduwsrv, /* qi_srvp */
  ^
../../common/io/conskbd.c:140: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 (*)())conskbdlrput, /* qi_putp */
  ^
../../common/io/conskbd.c:152:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())conskbdlwserv, /* qi_srvp */
  ^
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...