HomeFreeBSD

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

Description

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

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

sys/netpfil/ipfw/ip_fw_sockopt.c:3477:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
ipfw_init_sopt_handler()
                      ^
                       void
sys/netpfil/ipfw/ip_fw_sockopt.c:3485:26: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
ipfw_destroy_sopt_handler()
                         ^
                          void

This is because ipfw_init_sopt_handler() and ipfw_destroy_sopt_handler()
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 d62830c5e493133b0212f39c7efdab4232f87abf)

Details

Provenance
dimAuthored on Jul 21 2022, 7:30 PM
Parents
rG770520da5815: Fix unused variable warning in ocs_cam.c
Branches
Unknown
Tags
Unknown