Page MenuHomeFreeBSD

iwlwifi: Disable -Wformat when building with GCC.
ClosedPublic

Authored by jhb on Feb 2 2022, 8:21 PM.
Tags
None
Referenced Files
F140003150: D34146.diff
Thu, Dec 18, 9:36 PM
Unknown Object (File)
Fri, Dec 12, 10:34 AM
Unknown Object (File)
Fri, Dec 12, 9:05 AM
Unknown Object (File)
Thu, Dec 11, 3:11 AM
Unknown Object (File)
Sat, Dec 6, 1:18 PM
Unknown Object (File)
Wed, Dec 3, 5:15 AM
Unknown Object (File)
Wed, Dec 3, 2:37 AM
Unknown Object (File)
Sun, Nov 30, 10:07 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Feb 2 2022, 8:21 PM

Yeah, on the other hand they seem to have trouble adding extra options to just the driver -- from my reading between lines; who knows...

This revision is now accepted and ready to land.Feb 2 2022, 9:44 PM