]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust svc_vc_null() definition to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Sun, 24 Jul 2022 21:38:46 +0000 (23:38 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 24 Jul 2022 22:40:12 +0000 (00:40 +0200)
commit87d18efef7e3df5f4475cfe1a8f6d6782b7c1527
tree118016495cf370fcea65594063dd1a6c30bf4caf
parente87d90a9dce22003d79ae895bac5ce2d0ca029fe
Adjust svc_vc_null() definition to avoid clang 15 warning

With clang 15, the following -Werror warning is produced:

    sys/rpc/svc_vc.c:1078:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    svc_vc_null()
               ^
                void

This is because svc_vc_null() is declared with a (void) argument list,
but defined with an empty argument list. Make the definition match the
declaration.

MFC after: 3 days
sys/rpc/svc_vc.c