HomeFreeBSD

Adjust function definitions in route_ctl.c to avoid clang 15 warnings

Description

Adjust function definitions in route_ctl.c to avoid clang 15 warnings

With clang 15, the following -Werror warnings are produced:

sys/net/route/route_ctl.c:130:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
vnet_rtzone_init()
                ^
                 void
sys/net/route/route_ctl.c:139:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
vnet_rtzone_destroy()
                   ^
                    void

This is because vnet_rtzone_init() and vnet_rtzone_destroy() are
declared with (void) argument lists, but defined with empty argument
lists. Make the definitions match the declarations.

MFC after: 3 days

(cherry picked from commit 5e1097f83cbe353839888c0aad8e31bb62b8e9a4)

Details

Provenance
dimAuthored on Jul 26 2022, 6:28 PM
Parents
rG0ca977b155ff: Suppress unused variable warning for zfs_fm.c
Branches
Unknown
Tags
Unknown