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
This commit is contained in:
parent
d43255b50c
commit
87c5d39f77
@ -57,4 +57,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>
|
||||
|
Loading…
Reference in New Issue
Block a user