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

Details

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