HomeFreeBSD

Adjust function definition in subr_bus.c to avoid clang 15 warnings

Description

Adjust function definition in subr_bus.c to avoid clang 15 warnings

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

sys/kern/subr_bus.c:871:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
bus_topo_assert()
               ^
                void

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

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 26 2022, 4:01 PM
Parents
rG3c8f0790dd03: Adjust function definition in subr_autoconf.c to avoid clang 15 warnings
Branches
Unknown
Tags
Unknown