History

kbuild: turn on -Wrestrict by default

All known -Wrestrict warnings are addressed now, so don't disable the warning any more.

Arnd Bergmann committed 2 years ago

Commit 06bb7fc1 parent 2c1460d1 file · +0 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/Makefile.extrawarn+0−1
@@ -98,7 +98,6 @@ else · 97 unmodified lines
9898 # Suppress them by using -Wno... except for W=1.
9999 KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
100100 KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
101−KBUILD_CFLAGS += $(call cc-disable-warning, restrict)
102101 KBUILD_CFLAGS += $(call cc-disable-warning, packed-not-aligned)
103102 KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow)
104103 KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation)