]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in ofw to avoid clang 15 warning
authorAndrew Turner <andrew@FreeBSD.org>
Thu, 11 Aug 2022 12:02:50 +0000 (13:02 +0100)
committerAndrew Turner <andrew@FreeBSD.org>
Thu, 11 Aug 2022 13:30:32 +0000 (14:30 +0100)
commitec666d187d0dc44d105a95b5b25b47607236a051
treeba4aca60a258c80e97c99daa23584adfbd828ec7
parent05cef74742154cf3c89be214a464d8fabddf8d7d
Adjust function definition in ofw to avoid clang 15 warning

With clang 15, the following -Werror warning is produced:

    sys/dev/ofw/openfirm.c:826:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    OF_enter()
            ^
             void

This is because OF_enter() and OF_exit are declared with a (void)
argument list, but defined with an empty argument list. Make the
definition match the declaration.

Sponsored by: The FreeBSD Foundation
sys/dev/ofw/openfirm.c