Skip to content

Commit a97ea93

Browse files
JoePerchesmasahir0y
authored andcommitted
Makefile.extrawarn: Move sign-compare from W=2 to W=3
This -Wsign-compare compiler warning can be very noisy and most of the suggested conversions are unnecessary. Make the warning W=3 so it's described under the "can most likely be ignored" block. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 9123e3a commit a97ea93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.extrawarn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ KBUILD_CFLAGS += -Wnested-externs
6666
KBUILD_CFLAGS += -Wshadow
6767
KBUILD_CFLAGS += $(call cc-option, -Wlogical-op)
6868
KBUILD_CFLAGS += -Wmissing-field-initializers
69-
KBUILD_CFLAGS += -Wsign-compare
7069
KBUILD_CFLAGS += -Wtype-limits
7170
KBUILD_CFLAGS += $(call cc-option, -Wmaybe-uninitialized)
7271
KBUILD_CFLAGS += $(call cc-option, -Wunused-macros)
@@ -87,6 +86,7 @@ KBUILD_CFLAGS += -Wpacked
8786
KBUILD_CFLAGS += -Wpadded
8887
KBUILD_CFLAGS += -Wpointer-arith
8988
KBUILD_CFLAGS += -Wredundant-decls
89+
KBUILD_CFLAGS += -Wsign-compare
9090
KBUILD_CFLAGS += -Wswitch-default
9191
KBUILD_CFLAGS += $(call cc-option, -Wpacked-bitfield-compat)
9292

0 commit comments

Comments
 (0)