Skip to content

Commit 7889367

Browse files
nathanchancejnikula
authored andcommitted
drm/i915: Enable -Wsometimes-uninitialized
This warning helps catch uninitialized variables. It should have been enabled at the same time as commit b242318 ("drm/i915: Enable -Wuninitialized") but I did not realize they were disabled separately. Enable it now that i915 is clean so that it stays that way. Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210824225427.2065517-4-nathan@kernel.org (cherry picked from commit 4319261) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 347c4db commit 7889367

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/i915/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ subdir-ccflags-y += $(call cc-disable-warning, missing-field-initializers)
1919
subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
2020
# clang warnings
2121
subdir-ccflags-y += $(call cc-disable-warning, sign-compare)
22-
subdir-ccflags-y += $(call cc-disable-warning, sometimes-uninitialized)
2322
subdir-ccflags-y += $(call cc-disable-warning, initializer-overrides)
2423
subdir-ccflags-y += $(call cc-disable-warning, frame-address)
2524
subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror

0 commit comments

Comments
 (0)