]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in subr_autoconf.c to avoid clang 15 warnings
authorDimitry Andric <dim@FreeBSD.org>
Tue, 26 Jul 2022 15:27:54 +0000 (17:27 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Tue, 26 Jul 2022 17:59:57 +0000 (19:59 +0200)
commit3c8f0790dd038ce646f140b7aad23b4e698c0522
tree0534832f71fb893f9e16a8776bf9cc5a2e72a5f2
parentf2eb09b089bcdf546ed3fd4c2c59d9df02c585d8
Adjust function definition in subr_autoconf.c to avoid clang 15 warnings

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

    sys/kern/subr_autoconf.c:119:34: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    run_interrupt_driven_config_hooks()
                                     ^
                                      void

This is because run_interrupt_driven_config_hooks() 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/kern/subr_autoconf.c