Actions
Bug #11978
closedlibnsl: cast between incompatible function types
Start date:
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
Build error with gcc 8:
../rpc/xdr_sizeof.c: In function 'xdr_sizeof': ../rpc/xdr_sizeof.c:136:19: error: cast between incompatible function types from 'int (*)(void)' to 'bool_t (*)(XDR *, long int *)' {aka 'int (*)(struct XDR *, long int *)'} [-Werror=cast-function-type] ops.x_getlong = (dummyfunc1) harmless; ^ ../rpc/xdr_sizeof.c:148:19: error: cast between incompatible function types from 'int (*)(void)' to 'bool_t (*)(XDR *, char *, int)' {aka 'int (*)(struct XDR *, char *, int)'} [-Werror=cast-function-type] ops.x_getbytes = (dummyfunc2) harmless; ^ cc1: all warnings being treated as errors
Add proper callbacks.
Testing done: build/install/boot
Actions