11732 portfs: cast between incompatible function types

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

Information
Toomas Soome
illumos-gate
11732
b1ef87d...
Reviewers
general
../../common/fs/portfs/port.c:389:2: error: cast between incompatible function types from 'int64_t (*)(int,  uintptr_t,  uintptr_t,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'long int (*)(int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())portfs,
  ^
../../common/fs/portfs/port.c:405:2: error: cast between incompatible function types from 'int64_t (*)(uint32_t,  int32_t,  uint32_t,  uint32_t,  uint32_t,  uint32_t)' {aka 'long int (*)(unsigned int,  int,  unsigned int,  unsigned int,  unsigned int,  unsigned int)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())portfs32,
  ^
cc1: all warnings being treated as errors

  
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...