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.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -67,7 +67,6 @@ else · 66 unmodified lines | ||
| 67 | 67 | |
| 68 | 68 | ifdef CONFIG_CC_IS_CLANG |
| 69 | 69 | KBUILD_CFLAGS += -Wno-initializer-overrides |
| 70 | −KBUILD_CFLAGS += -Wno-unused-value | |
| 71 | 70 | KBUILD_CFLAGS += -Wno-format |
| 72 | 71 | KBUILD_CFLAGS += -Wno-sign-compare |
| 73 | 72 | KBUILD_CFLAGS += -Wno-format-zero-length |