10493 pts: cast between incompatible function types

Review Request #1545 - Created March 2, 2019 and submitted

Information
Toomas Soome
illumos-gate
10493
2c86c03...
Reviewers
general
../../common/io/pts.c:149:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)()) ptsrsrv,
  ^
../../common/io/pts.c:158: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 (*)()) ptswput,
  ^
../../common/io/pts.c:159:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)()) ptswsrv,
  ^
../../common/io/pts.c: In function 'ptswput':
../../common/io/pts.c:622:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
   switch (iocp->ioc_cmd) {
   ^~~~~~
../../common/io/pts.c:643:2: note: here
  default:
  ^~~~~~~
cc1: all warnings being treated as errors

  

Issues

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

Status: Closed (submitted)

Loading...