Bug #11978
Updated by Toomas Soome over 2 years ago
Build error with gcc 8:
<pre>
../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
</pre>
Add proper callbacks.
Testing done: build/install/boot