git: e0229df69964 - stable/12 - Adjust function definition in riscv's db_trace.c to avoid clang 15 warning

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 21 Aug 2022 11:29:45 UTC
The branch stable/12 has been updated by dim:

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

commit e0229df69964e35a8d352402e2a944bba25f3b42
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-15 18:48:17 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-21 11:27:27 +0000

    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
    
    (cherry picked from commit da36b5d244419fdc137e0cce50bf021e8c46c822)
---
 sys/riscv/riscv/db_trace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/riscv/riscv/db_trace.c b/sys/riscv/riscv/db_trace.c
index 2a783b2ed0f0..96f667ae2e24 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)
 {
 
 }