HomeFreeBSD

Adjust authnone_create() definition to avoid clang 15 warning

Description

Adjust authnone_create() definition to avoid clang 15 warning

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

sys/rpc/auth_none.c:106:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
authnone_create()
               ^
                void

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

MFC after: 3 days

(cherry picked from commit 90529847cf079d3b7250ae3d3ecd79e843df7973)

Details

Provenance
dimAuthored on Jul 24 2022, 9:40 PM
Parents
rG6e9a64d7ef1e: Fix unused variable warning in icl_soft.c
Branches
Unknown
Tags
Unknown