Bug #10299
closedkcpc.c: cast between incompatible function types
100%
Description
../../common/os/kcpc.c: In function 'kcpc_cpu_stop':
../../common/os/kcpc.c:2456:15: error: cast between incompatible function types from 'void ()(boolean_t)' {aka 'void ()(enum <anonymous>)'} to 'void ()(uintptr_t, uintptr_t)' {aka 'void ()(long unsigned int, long unsigned int)'} [-Werror=cast-function-type]
cpu_call(cp, (cpu_call_func_t)kcpc_cpustop_func,
^
../../common/os/kcpc.c: In function 'kcpc_cpu_program':
../../common/os/kcpc.c:2481:15: error: cast between incompatible function types from 'void ()(kcpc_ctx_t *, uintptr_t)' {aka 'void ()(struct _kcpc_ctx , long unsigned int)'} to 'void ()(uintptr_t, uintptr_t)' {aka 'void (*)(long unsigned int, long unsigned int)'} [-Werror=cast-function-type]
cpu_call(cp, (cpu_call_func_t)kcpc_remoteprogram_func, (uintptr_t)ctx,
^
cc1: all warnings being treated as errors
Updated by Electric Monk over 4 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit ecd7dc692599292c0012e55e5c7ca9dffca4d1a1
commit ecd7dc692599292c0012e55e5c7ca9dffca4d1a1 Author: Toomas Soome <tsoome@me.com> Date: 2019-01-31T22:04:30.000Z 10299 kcpc.c: cast between incompatible function types Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Hans Rosenfeld <hans.rosenfeld@joyent.com>