11730 shmsys: cast between incompatible function types

Review Request #2334 — Created Sept. 20, 2019 and submitted

tsoome
illumos-gate
11730
91c0f84...
general
../../common/os/shm.c:188:2: error: cast between incompatible function types from 'uintptr_t (*)(int,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'long unsigned int (*)(int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())shmsys
  ^
../../common/os/shm.c:195:2: error: cast between incompatible function types from 'uintptr_t (*)(int,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'long unsigned int (*)(int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())shmsys
  ^
cc1: all warnings being treated as errors


citrus
  1. Ship It!
  2. 
      
tsoome
tsoome
Review request changed

Status: Closed (submitted)

Loading...