]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Enable -Wsometimes-uninitialized
authorNathan Chancellor <nathan@kernel.org>
Tue, 24 Aug 2021 22:54:27 +0000 (15:54 -0700)
committerJani Nikula <jani.nikula@intel.com>
Tue, 14 Sep 2021 16:44:17 +0000 (19:44 +0300)
This warning helps catch uninitialized variables. It should have been
enabled at the same time as commit bdbff7e2f975 ("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
drivers/gpu/drm/i915/Makefile

index 949719ba048eaaa096d0cf8b51d32a67362d7042..c584188aa15a041f658223cfbf3ab3d5e21efc5b 100644 (file)
@@ -19,7 +19,6 @@ subdir-ccflags-y += $(call cc-disable-warning, missing-field-initializers)
 subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
 # clang warnings
 subdir-ccflags-y += $(call cc-disable-warning, sign-compare)
-subdir-ccflags-y += $(call cc-disable-warning, sometimes-uninitialized)
 subdir-ccflags-y += $(call cc-disable-warning, initializer-overrides)
 subdir-ccflags-y += $(call cc-disable-warning, frame-address)
 subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror