Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2022 11:29:40 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: d7e6bfa4e6b1 - stable/12 - Adjust function definition in arm64's db_trace.c to avoid clang 15 warning
Message-ID:  <202208211129.27LBTeWR005226@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=d7e6bfa4e6b1f12441d57dd1bb3c664ee65b68c0

commit d7e6bfa4e6b1f12441d57dd1bb3c664ee65b68c0
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:20:41 +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 82b6e07fc261..4c0b7a2c2e06 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.27LBTeWR005226>