git: 3c8f0790dd03 - main - Adjust function definition in subr_autoconf.c to avoid clang 15 warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Jul 2022 18:00:38 UTC
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=3c8f0790dd038ce646f140b7aad23b4e698c0522 commit 3c8f0790dd038ce646f140b7aad23b4e698c0522 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-26 15:27:54 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-26 17:59:57 +0000 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c index 5c278afb61c2..0166258a534c 100644 --- a/sys/kern/subr_autoconf.c +++ b/sys/kern/subr_autoconf.c @@ -116,7 +116,7 @@ run_interrupt_driven_config_hooks_warning(int warned) } static void -run_interrupt_driven_config_hooks() +run_interrupt_driven_config_hooks(void) { static int running; struct intr_config_hook *hook_entry;