Skip to content

Commit 3fecd46

Browse files
committed
drm/i915: re-enable -Wunused-but-set-variable
W=1 enables -Wunused-but-set-variable. We disabled it locally in i915 Makefile as we were hitting a bunch of warnings. See commit 6a05d29 ("drm/i915: Disable unused-but-set compiler warning"). With the issues fixed or annotated with __maybe_unused, re-enable the warning not only in W=1 but also locally as part of i915 build. Signed-off-by: Jani Nikula <[email protected]> Reviewed-by: Jouni Högander <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/28ca3f95fe77ceb8aa35b87fca73f7afbc89859a.1685119007.git.jani.nikula@intel.com
1 parent f645d22 commit 3fecd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ subdir-ccflags-y += -Wno-type-limits
1919
subdir-ccflags-y += -Wno-missing-field-initializers
2020
subdir-ccflags-y += -Wno-sign-compare
2121
subdir-ccflags-y += -Wno-shift-negative-value
22-
subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
22+
subdir-ccflags-y += $(call cc-option, -Wunused-but-set-variable)
2323
subdir-ccflags-y += $(call cc-disable-warning, frame-address)
2424
subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror
2525

0 commit comments

Comments
 (0)