Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2022 23:09:21 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ba035a31128b - main - pf: Use __diagused for variables only used in KASSERT().
Message-ID:  <202204132309.23DN9LeD074286@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=ba035a31128bd321cb9425bef9f5a9c3ff07859a

commit ba035a31128bd321cb9425bef9f5a9c3ff07859a
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-13 23:08:20 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-13 23:08:20 +0000

    pf: Use __diagused for variables only used in KASSERT().
---
 sys/netpfil/pf/pf_ioctl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c
index 52f11f57c068..49fdb6046098 100644
--- a/sys/netpfil/pf/pf_ioctl.c
+++ b/sys/netpfil/pf/pf_ioctl.c
@@ -6464,7 +6464,7 @@ hook_pf(void)
 {
 	struct pfil_hook_args pha;
 	struct pfil_link_args pla;
-	int ret;
+	int ret __diagused;
 
 	if (V_pf_pfil_hooked)
 		return;
@@ -6600,7 +6600,7 @@ pf_load(void)
 static void
 pf_unload_vnet(void)
 {
-	int ret;
+	int ret __diagused;
 
 	V_pf_vnet_active = 0;
 	V_pf_status.running = 0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204132309.23DN9LeD074286>