11730 shmsys: cast between incompatible function types

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

Information
Toomas Soome
illumos-gate
11730
91c0f84...
Reviewers
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

  
Andy Fiddaman
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...