HomeFreeBSD

Adjust pcm_md_initialize() definition to avoid clang 15 warning

Description

Adjust pcm_md_initialize() definition to avoid clang 15 warning

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

sys/dev/hwpmc/hwpmc_x86.c:245:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
pcm_md_initialize()
                 ^
                  void

This is because pcm_md_initialize() 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 dc0cde7a21a6aab0a5e876d8f890764e32718932)

Details

Provenance
dimAuthored on Jul 21 2022, 6:23 PM
Parents
rG1e60e1d13dca: Adjust ipfw_{init,destroy}_sopt_handler() definitions to avoid clang 15 warning
Branches
Unknown
Tags
Unknown