Date: Sun, 24 Jul 2022 11:02:34 GMT From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 49030cacbcd7 - stable/12 - Adjust iface_khandler_register() definition to avoid clang 15 warning Message-ID: <202207241102.26OB2YJa041715@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=49030cacbcd7d1d6e7b1b847f897dd6f25d843cb commit 49030cacbcd7d1d6e7b1b847f897dd6f25d843cb Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-21 19:28:03 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-24 11:01:22 +0000 Adjust iface_khandler_register() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/netpfil/ipfw/ip_fw_iface.c:128:24: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] iface_khandler_register() ^ void This is because iface_khandler_register() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit edf1e1f78da8c2a19bcee90fe0f72cac2eb18e30) --- sys/netpfil/ipfw/ip_fw_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/ipfw/ip_fw_iface.c b/sys/netpfil/ipfw/ip_fw_iface.c index 13b6bc4a8b45..814188e29499 100644 --- a/sys/netpfil/ipfw/ip_fw_iface.c +++ b/sys/netpfil/ipfw/ip_fw_iface.c @@ -126,7 +126,7 @@ ipfw_kifhandler(void *arg, struct ifnet *ifp) * Registers interface tracking handlers for first VNET. */ static void -iface_khandler_register() +iface_khandler_register(void) { int create;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207241102.26OB2YJa041715>