HomeFreeBSD

Adjust nvd_{load,unload}() definitions to avoid clang 15 warnings

Description

Adjust nvd_{load,unload}() definitions to avoid clang 15 warnings

With clang 15, the following -Werror warnings are produced:

sys/dev/nvd/nvd.c:150:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
nvd_load()
        ^
         void
sys/dev/nvd/nvd.c:166:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
nvd_unload()
          ^
           void

This is because nvd_load() and nvd_unload() are declared with a (void)
argument list, but defined with an empty argument list. Make the
definitions match the declarations.

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 19 2022, 8:05 PM
Parents
rG52c80d495a1b: Suppress unused variable warning in if_mwl.c
Branches
Unknown
Tags
Unknown