git: ba035a31128b - main - pf: Use __diagused for variables only used in KASSERT().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Apr 2022 23:09:21 UTC
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;