]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iwlwifi: Disable -Wformat when building with GCC.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 3 Feb 2022 18:48:18 +0000 (10:48 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 3 Feb 2022 18:48:18 +0000 (10:48 -0800)
commit87c5d39f77bc8c38738a6dc200f711f4418c5018
tree0bb9a3cdf88f872476c34d5cda6edd4faf5d69ad
parentd43255b50c2bfb00452d0b2f0edafb8a38cf79b3
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
sys/modules/iwlwifi/Makefile