Project

General

Profile

Bug #11720

Updated by Toomas Soome 8 months ago

Build errors with gcc 8:
<pre>
../../common/rpc/rpcmod.c:240:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type]
(int (*)())rmm_rput,
^
../../common/rpc/rpcmod.c:241:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
(int (*)())rmm_rsrv,
^
../../common/rpc/rpcmod.c:255:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type]
(int (*)())rmm_wput,
^
../../common/rpc/rpcmod.c:256:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
(int (*)())rmm_wsrv,
^



../../common/rpc/rpcmod.c: In function 'mir_wput_other':
../../common/rpc/rpcmod.c:2500:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
switch (((union T_primitives *)rptr)->type) {
^~~~~~
../../common/rpc/rpcmod.c:2620:2: note: here
default:
^~~~~~~

../../common/rpc/clnt_clts.c: In function 'endpnt_repossess':
../../common/rpc/clnt_clts.c:2008:7: error: cast between incompatible function types from 'void (*)(zoneid_t)' {aka 'void (*)(int)'} to 'void (*)(void *)' [-Werror=cast-function-type]
(task_func_t *)endpnt_reclaim, (void *)ALL_ZONES,
^

cc1: all warnings being treated as errors
</pre>

Back