aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-26 15:27:54 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-29 18:29:09 +0000
commitb49030ecd4a1d4488722f4db84b38759829c2b67 (patch)
tree6cbea8ec08aaef0262247903a13e27e975be3b64
parent840153f61c701071d59634b8cfdbc16420ab3715 (diff)
downloadsrc-b49030ecd4a1d4488722f4db84b38759829c2b67.tar.gz
src-b49030ecd4a1d4488722f4db84b38759829c2b67.zip
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 (cherry picked from commit 3c8f0790dd038ce646f140b7aad23b4e698c0522)
-rw-r--r--sys/kern/subr_autoconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index 77c48485e1da..ee77b794b116 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;