]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust pcm_md_initialize() definition to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Thu, 21 Jul 2022 18:23:19 +0000 (20:23 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Thu, 21 Jul 2022 19:05:50 +0000 (21:05 +0200)
commitdc0cde7a21a6aab0a5e876d8f890764e32718932
tree502c8af5a012b07827724dd557fab0aa4fd11bcf
parentba95c556029357800d18a5bc5abd02a2b7d0c9de
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
sys/dev/hwpmc/hwpmc_x86.c