History

kbuild: Remove unnecessary -Wno-unused-value

This flag turns off several other warnings that would be useful. Most notably -warn_unused_result is disabled. All of the following warnings are currently disabled: UnusedValue |-UnusedComparison |-warn_unused_comparison |-UnusedResult |-warn_unused_result |-UnevaluatedExpression |-PotentiallyEvaluatedExpression |-warn_side_effects_typeid |-warn_side_effects_unevaluated_context |-warn_unused_expr |-warn_unused_voidptr |-warn_unused_container_subscript_expr |-warn_unused_call With this flag removed there are ~10 warnings. Patches have been submitted for each of these warnings.

Nathan Huckleberry committed 7 years ago

Commit 4df607c1 parent 72ad2101 file · +0 −1Browse files

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

Unified · Split

scripts/Makefile.extrawarn+0−1
@@ -67,7 +67,6 @@ else · 66 unmodified lines
67 67
68ifdef CONFIG_CC_IS_CLANG68ifdef CONFIG_CC_IS_CLANG
69KBUILD_CFLAGS += -Wno-initializer-overrides69KBUILD_CFLAGS += -Wno-initializer-overrides
70KBUILD_CFLAGS += -Wno-unused-value
71KBUILD_CFLAGS += -Wno-format70KBUILD_CFLAGS += -Wno-format
72KBUILD_CFLAGS += -Wno-sign-compare71KBUILD_CFLAGS += -Wno-sign-compare
73KBUILD_CFLAGS += -Wno-format-zero-length72KBUILD_CFLAGS += -Wno-format-zero-length