]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in riscv's db_trace.c to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:48:17 +0000 (20:48 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:48:35 +0000 (20:48 +0200)
commitda36b5d244419fdc137e0cce50bf021e8c46c822
treeb6f6e76f6510abc96bee01c96c36ac4e1775e6ba
parent02dd51c9bccedc2fc8d98c3892986232f6bacdab
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
sys/riscv/riscv/db_trace.c