[Bug 280514] Function cast warnings in lib/libypclnt
Date: Tue, 30 Jul 2024 18:09:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280514 Bug ID: 280514 Summary: Function cast warnings in lib/libypclnt Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: dim@FreeBSD.org Created attachment 252374 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=252374&action=edit clang 19 warnings emitted for lib/libypclnt While doing a buildworld with https://github.com/DimitryAndric/freebsd-src/tree/llvm-19-update using clang 19, I got a number of -Wcast-function-type-mismatch warnings for lib/libypclnt (via the generated $WORLDTMP/usr/include/rpc/clnt.h headers): yp_clnt.c:19:3: warning: cast from 'bool_t (*)(void)' (aka 'int (*)(void)') to 'xdrproc_t' (aka 'int (*)(struct XDR *, ...)') converts to incompatible function type [-Wcast-function-type-mismatch 19 | (xdrproc_t) xdr_void, (caddr_t) argp, | ^~~~~~~~~~~~~~~~~~~~ /usr/obj/share/dim/src/freebsd/llvm-19-update/amd64.amd64/tmp/usr/include/rpc/clnt.h:162:38: note: expanded from macro 'clnt_call' 162 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ | ^~~~~ and a bunch more of these. I attached a log file with the full list of warnings. -- You are receiving this mail because: You are the assignee for the bug.