HomeFreeBSD

Adjust function definition in ofw to avoid clang 15 warning

Description

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

(cherry picked from commit ec666d187d0dc44d105a95b5b25b47607236a051)

Details

Provenance
andrewAuthored on Aug 11 2022, 12:02 PM
Parents
rG1570048c5219: Adjust function definition in hwpmc to avoid clang 15 warning
Branches
Unknown
Tags
Unknown