diff mbox series

[19/25] Makefile.in:

Message ID 20220209222610.438470-20-mcgrof@kernel.org (mailing list archive)
State New, archived
Headers show
Series dbench: fix compile warnings and update a bit | expand

Commit Message

Luis Chamberlain Feb. 9, 2022, 10:26 p.m. UTC
mount_client.c:19:17: warning: cast between incompatible function types
from ‘bool_t (*)(void)’ {aka ‘int (*)(void)’} to ‘bool_t (*)(XDR *,
...)’ {aka ‘int (*)(struct __rpc_xdr *, ...)’} [-Wcast-function-type]
   19 |                 (xdrproc_t) xdr_void, (caddr_t) argp,
      |                 ^

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 Makefile.in | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/Makefile.in b/Makefile.in
index ef414a5..f8e1f58 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -19,6 +19,7 @@  CFLAGS+=`pkg-config --cflags libtirpc`
 # Allows comments to be used for fallthrough
 CFLAGS+=-Wimplicit-fallthrough=2
 CFLAGS_RPCGEN=-Wno-unused-variable
+CFLAGS_RPCGEN+=-Wno-cast-function-type
 LIBS+=`pkg-config --libs libtirpc`
 EXEEXT=@EXEEXT@