10493 pts: cast between incompatible function types

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

tsoome
illumos-gate
10493
2c86c03...
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


  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
domag02
  1. 
      
  2. usr/src/uts/common/io/pts.c (Diff revision 1)
     
     
    Whitespace nits.
  3. 
      
tsoome
seeemef@mac.com
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...