]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in arm64's db_trace.c to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:03:39 +0000 (20:03 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:48:33 +0000 (20:48 +0200)
commit940740891516c31a993cb0d267bd19f2d07ede49
tree438ec99910a70af52f5dcaa5ec232b90ac31156e
parent402dbdd98acc7fa94d1d4cd01903e987d2409336
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