Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2022 18:48:34 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 656fcede6c71 - stable/12 - Adjust function definition in subr_autoconf.c to avoid clang 15 warnings
Message-ID:  <202207291848.26TImYj8025549@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=656fcede6c7121a5dba850d99ad54102364d76f3

commit 656fcede6c7121a5dba850d99ad54102364d76f3
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-26 15:27:54 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-29 18:37:15 +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
    
    (cherry picked from commit 3c8f0790dd038ce646f140b7aad23b4e698c0522)
---
 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 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207291848.26TImYj8025549>