git: 940740891516 - main - Adjust function definition in arm64's db_trace.c to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Aug 2022 18:49:18 UTC
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=940740891516c31a993cb0d267bd19f2d07ede49 commit 940740891516c31a993cb0d267bd19f2d07ede49 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-08-15 18:03:39 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-08-15 18:48:33 +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 --- 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 9123f73079ef..4d68cd513bce 100644 --- a/sys/arm64/arm64/db_trace.c +++ b/sys/arm64/arm64/db_trace.c @@ -50,7 +50,7 @@ __FBSDID("$FreeBSD$"); #define FRAME_UNHANDLED 4 void -db_md_list_watchpoints() +db_md_list_watchpoints(void) { dbg_show_watchpoint();