aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-02-03 18:48:18 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-01-24 04:33:49 +0000
commitb9cab0f39cc88554bfd6338ee1b1a91227334856 (patch)
treecc9e8bf148e5bfcbbfd8c3fe9de6af895fc6f5aa
parent16ae7b665c7eac41fc717d9f09da2a2fb4ed1973 (diff)
downloadsrc-b9cab0f39cc88554bfd6338ee1b1a91227334856.tar.gz
src-b9cab0f39cc88554bfd6338ee1b1a91227334856.zip
iwlwifi: Disable -Wformat when building with GCC.
GCC's -Wformat complains about NULL format strings passed to iwl_fw_dbg_collect_trig (though the function handles NULL format strings). Curious that upstream iwlwifi in Linux is built with GCC and explicitly opts into this warning via the __printf() attribute. Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D34146 (cherry picked from commit 87c5d39f77bc8c38738a6dc200f711f4418c5018)
-rw-r--r--sys/modules/iwlwifi/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/modules/iwlwifi/Makefile b/sys/modules/iwlwifi/Makefile
index 831fe97847a5..5cf652267354 100644
--- a/sys/modules/iwlwifi/Makefile
+++ b/sys/modules/iwlwifi/Makefile
@@ -63,4 +63,7 @@ CFLAGS+= -DCONFIG_IWLWIFI_DEVICE_TRACING=1
#CFLAGS+= -DCONFIG_THERMAL=1
#CFLAGS+= -DCONFIG_EFI=1
+# GCC warns about NULL format strings passed to iwl_fw_dbg_collect_trig
+CWARNFLAGS.gcc+= -Wno-format
+
.include <bsd.kmod.mk>