HomeFreeBSD

Adjust ipfw_iface_{init,destroy}() definitions to avoid clang 15 warning

Description

Adjust ipfw_iface_{init,destroy}() definitions to avoid clang 15 warning

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

sys/netpfil/ipfw/ip_fw_iface.c:206:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
ipfw_iface_init()
               ^
                void
sys/netpfil/ipfw/ip_fw_iface.c:219:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
ipfw_iface_destroy()
                  ^
                   void

This is because ipfw_iface_init() and ipfw_iface_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 1eea6b9097834484f2238298f550bb418901c313)

Details

Provenance
dimAuthored on Jul 21 2022, 7:37 PM
Parents
rG668beb3273cb: Fix unused variable warning in iflib.c
Branches
Unknown
Tags
Unknown