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
6767
6868 ifdef CONFIG_CC_IS_CLANG
6969 KBUILD_CFLAGS += -Wno-initializer-overrides
70−KBUILD_CFLAGS += -Wno-unused-value
7170 KBUILD_CFLAGS += -Wno-format
7271 KBUILD_CFLAGS += -Wno-sign-compare
7372 KBUILD_CFLAGS += -Wno-format-zero-length