HomeFreeBSD

Adjust function definition in nd6.c to avoid clang 15 warnings

Description

Adjust function definition in nd6.c to avoid clang 15 warnings

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

sys/netinet6/nd6.c:247:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
nd6_destroy()
           ^
            void

This is nd6_destroy() 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 50207b2de9a53491c2b5ee9b96689333f5c46de5)

Details

Provenance
dimAuthored on Jul 26 2022, 7:10 PM
Parents
rG4f52b2ba472e: Adjust function definitions in kern_resource.c to avoid clang 15 warnings
Branches
Unknown
Tags
Unknown