Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2023 17:43:56 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: 0b672df9142f - main - iwlwifi: Silence unused but set warnings from GCC for iwl-debug.c.
Message-ID:  <202304101743.33AHhu3n073762@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=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>



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