diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-21 18:31:56 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-21 19:05:50 +0000 |
commit | 555d2c9394fa673241fd26a95152adfb9d20952e (patch) | |
tree | 1f00385366a0776b618ae2b626c58d9062172e8d | |
parent | dc0cde7a21a6aab0a5e876d8f890764e32718932 (diff) |
Adjust pmc_thread_descriptor_pool_drain() definition to avoid clang 15 warning
With clang 15, the following -Werror warning is produced:
sys/dev/hwpmc/hwpmc_mod.c:2462:33: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
pmc_thread_descriptor_pool_drain()
^
void
This is because pmc_thread_descriptor_pool_drain() is declared with a
(void) argument list, but defined with an empty argument list. Make the
definition match the declaration.
MFC after: 3 days
-rw-r--r-- | sys/dev/hwpmc/hwpmc_mod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 1a7f2869d9b9..308b0bdff1bb 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -2459,7 +2459,7 @@ pmc_thread_descriptor_pool_free_task(void *arg __unused, int pending __unused) * Drain the thread free pool, freeing all allocations. */ static void -pmc_thread_descriptor_pool_drain() +pmc_thread_descriptor_pool_drain(void) { struct pmc_thread *pt, *next; |