HomeFreeBSD

iwlwifi: Disable -Wformat when building with GCC.

Description

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)

Details

Provenance
jhbAuthored on Feb 3 2022, 6:48 PM
Reviewer
bz
Differential Revision
D34146: iwlwifi: Disable -Wformat when building with GCC.
Parents
rG16ae7b665c7e: nhop: hash ifnet pointer instead of if_index
Branches
Unknown
Tags
Unknown