10374 watchpoint: cast between incompatible function types

Review Request #1449 — Created Feb. 11, 2019 and submitted

tsoome
illumos-gate
10374
3aa403f...
general
../../common/os/watchpoint.c: In function 'watch_fuword8':
../../common/os/watchpoint.c:1210:34: error: cast between incompatible function types from 'void (*)(const void *, uint8_t *)' {aka 'void (*)(const void *, unsigned char *)'} to 'int (*)(const void *, void *)' [-Werror=cast-function-type]
  return (watch_fuword(addr, dst, (fuword_func)fuword8_noerr,
                                  ^
../../common/os/watchpoint.c: In function 'watch_fuword16':
../../common/os/watchpoint.c:1217:34: error: cast between incompatible function types from 'void (*)(const void *, uint16_t *)' {aka 'void (*)(const void *, short unsigned int *)'} to 'int (*)(const void *, void *)' [-Werror=cast-function-type]
  return (watch_fuword(addr, dst, (fuword_func)fuword16_noerr,
                                  ^
../../common/os/watchpoint.c: In function 'watch_fuword32':
../../common/os/watchpoint.c:1224:34: error: cast between incompatible function types from 'void (*)(const void *, uint32_t *)' {aka 'void (*)(const void *, unsigned int *)'} to 'int (*)(const void *, void *)' [-Werror=cast-function-type]
  return (watch_fuword(addr, dst, (fuword_func)fuword32_noerr,
                                  ^
../../common/os/watchpoint.c: In function 'watch_fuword64':
../../common/os/watchpoint.c:1232:34: error: cast between incompatible function types from 'void (*)(const void *, uint64_t *)' {aka 'void (*)(const void *, long unsigned int *)'} to 'int (*)(const void *, void *)' [-Werror=cast-function-type]
  return (watch_fuword(addr, dst, (fuword_func)fuword64_noerr,
                                  ^
cc1: all warnings being treated as errors


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

Status: Closed (submitted)

Loading...