Under most case, we are just using 'int' for 'unsigned int', and doesn't care about the sign.
The Wsign-compare is causing tons of false alerts. Suppressing it would make W=1 less noisy. Signed-off-by: Qu Wenruo <w...@suse.com> --- Makefile.extrawarn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.extrawarn b/Makefile.extrawarn index bbb2d5173846..c108e98ee7ec 100644 --- a/Makefile.extrawarn +++ b/Makefile.extrawarn @@ -45,7 +45,7 @@ endif ifdef BUILD_ENABLE_EXTRA_GCC_CHECKS warning- := $(empty) -warning-1 := -Wextra -Wunused -Wno-unused-parameter +warning-1 := -Wextra -Wunused -Wno-unused-parameter -Wno-sign-compare warning-1 += -Wmissing-declarations warning-1 += -Wmissing-format-attribute warning-1 += $(call cc-option, -Wmissing-prototypes) -- 2.19.1