Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 2024 18:09:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 280514] Function cast warnings in lib/libypclnt
Message-ID:  <bug-280514-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280514

            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=3D252374&action=
=3Dedit
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/libypc=
lnt
(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/r=
pc/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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280514-227>