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

(cherry picked from commit c46c9b3f5f1eb5575a5e42f52872dbea9cf7516f)

Details

Provenance
dimAuthored on Jul 19 2022, 8:05 PM
Parents
rG9dcb9a1e7b75: Fix unused variable warning in if_alc.c
Branches
Unknown
Tags
Unknown