Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2022 11:29:09 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: 894334abf436 - stable/13 - Adjust function definition in arm64's db_trace.c to avoid clang 15 warning
Message-ID:  <202208211129.27LBT9Kh004413@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=894334abf436546f7e610538d80ab86407671c03

commit 894334abf436546f7e610538d80ab86407671c03
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-15 18:03:39 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-21 11:13:31 +0000

    Adjust function definition in arm64's db_trace.c to avoid clang 15 warning
    
    With clang 15, the following -Werror warning is produced:
    
        sys/arm64/arm64/db_trace.c:53:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        db_md_list_watchpoints()
                              ^
                               void
    
    This is because db_md_list_watchpoints() 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 940740891516c31a993cb0d267bd19f2d07ede49)
---
 sys/arm64/arm64/db_trace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/arm64/db_trace.c b/sys/arm64/arm64/db_trace.c
index 39850ce3bf02..e5f94cb5e18c 100644
--- a/sys/arm64/arm64/db_trace.c
+++ b/sys/arm64/arm64/db_trace.c
@@ -43,7 +43,7 @@ __FBSDID("$FreeBSD$");
 #include <machine/stack.h>
 
 void
-db_md_list_watchpoints()
+db_md_list_watchpoints(void)
 {
 
 	dbg_show_watchpoint();



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