Actions
Bug #10538
closedsppp: cast between incompatible function types
Start date:
2019-03-12
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
Build error with gcc 8:
../../common/io/ppp/sppp/sppp_mod.c:96: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 (*)())sppp_uwput, /* qi_putp */ ^ ../../common/io/ppp/sppp/sppp_mod.c:97:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type] (int (*)())sppp_uwsrv, /* qi_srvp */ ^ ../../common/io/ppp/sppp/sppp_mod.c:106: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 (*)())sppp_lrput, /* qi_putp */ ^ ../../common/io/ppp/sppp/sppp_mod.c:107:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type] (int (*)())sppp_lrsrv, /* qi_srvp */ ^ ../../common/io/ppp/sppp/sppp_mod.c:117:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type] (int (*)())sppp_lwsrv, /* qi_srvp */ ^ cc1: all warnings being treated as errors
Actions