Message ID | 20181116075426.4142-4-wqu@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs-progs: Make W=1 clean (no "again") | expand |
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)
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 <wqu@suse.com> --- Makefile.extrawarn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)