extrawarn: enable format and stringop overflow warnings in W=1
authorArnd Bergmann <arnd@arndb.de>
Fri, 11 Aug 2023 14:03:23 +0000 (16:03 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 20 Aug 2023 05:16:59 +0000 (14:16 +0900)
commit6d4ab2e97dcfbcd748ae71761a9d8e5e41cc732c
tree1a392489939efaada411344d41f304bbc8304265
parent2cd3271b7a310b1199aa36bfd536ca67d3c2d5f2
extrawarn: enable format and stringop overflow warnings in W=1

The stringop and format warnings got disabled globally when they were
newly introduced in commit bd664f6b3e376 ("disable new gcc-7.1.1 warnings
for now"), 217c3e0196758 ("disable stringop truncation warnings for now")
and 5a76021c2eff7 ("gcc-10: disable 'stringop-overflow' warning for now").

In all cases, the sentiment at the time was that the warnings are
useful, and we actually addressed a number of real bugs based on
them, but we never managed to eliminate them all because even the
build bots using W=1 builds only see the -Wstringop-truncation
warnings that are enabled at that level.

Move these into the W=1 section to give them a larger build coverage
and actually eliminate them over time.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.extrawarn