git: 0b672df9142f - main - iwlwifi: Silence unused but set warnings from GCC for iwl-debug.c.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 10 Apr 2023 17:43:56 UTC
The branch main has been updated by jhb:

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

commit 0b672df9142f28f2f1b5a54f1fe7b5f41f135473
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-10 17:31:07 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-10 17:31:07 +0000

    iwlwifi: Silence unused but set warnings from GCC for iwl-debug.c.
    
    Reviewed by:    bz
    Differential Revision:  https://reviews.freebsd.org/D39352
---
 sys/modules/iwlwifi/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/modules/iwlwifi/Makefile b/sys/modules/iwlwifi/Makefile
index 5cf652267354..39e60cb452af 100644
--- a/sys/modules/iwlwifi/Makefile
+++ b/sys/modules/iwlwifi/Makefile
@@ -66,4 +66,7 @@ CFLAGS+=	-DCONFIG_IWLWIFI_DEVICE_TRACING=1
 # GCC warns about NULL format strings passed to iwl_fw_dbg_collect_trig
 CWARNFLAGS.gcc+= -Wno-format
 
+# GCC warns about set but unused vaf variables
+CWARNFLAGS.iwl-debug.c+= ${NO_WUNUSED_BUT_SET_VARIABLE}
+
 .include <bsd.kmod.mk>