aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-08-15 18:48:17 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-08-15 18:48:35 +0000
commitda36b5d244419fdc137e0cce50bf021e8c46c822 (patch)
treeb6f6e76f6510abc96bee01c96c36ac4e1775e6ba
parent02dd51c9bccedc2fc8d98c3892986232f6bacdab (diff)
downloadsrc-da36b5d244419fdc137e0cce50bf021e8c46c822.tar.gz
src-da36b5d244419fdc137e0cce50bf021e8c46c822.zip
Adjust function definition in riscv's db_trace.c to avoid clang 15 warning
With clang 15, the following -Werror warning is produced: sys/riscv/riscv/db_trace.c:56: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
-rw-r--r--sys/riscv/riscv/db_trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/riscv/riscv/db_trace.c b/sys/riscv/riscv/db_trace.c
index dbc2ba92bce3..56508464e7c6 100644
--- a/sys/riscv/riscv/db_trace.c
+++ b/sys/riscv/riscv/db_trace.c
@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
#include <machine/vmparam.h>
void
-db_md_list_watchpoints()
+db_md_list_watchpoints(void)
{
}