10365 modconf: cast between incompatible function types
Review Request #1443 — Created Feb. 10, 2019 and submitted
Information | |
---|---|
tsoome | |
illumos-gate | |
10365 | |
1444 | |
48d15c4... | |
Reviewers | |
general | |
../../common/os/modconf.c:792:21: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type] sysp->sy_callc = (int64_t (*)())mp->sy_call; ^ ../../common/os/modconf.c: In function 'mod_removesys_sysent': ../../common/os/modconf.c:837:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type] sysp->sy_call = (int (*)())nosys; ^ cc1: all warnings being treated as errors