[Intel-gfx] [PATCH 2/2] drm/i915: Add -Wunused-const-variable to our build

Chris Wilson chris at chris-wilson.co.uk
Fri Oct 13 16:08:30 UTC 2017


Recently this warning caught a regression that had been lurking for 6
months, so it seems to be justified!

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile
index 0bb6e423ecd7..4351b7b6f09b 100644
--- a/drivers/gpu/drm/i915/Makefile
+++ b/drivers/gpu/drm/i915/Makefile
@@ -3,6 +3,7 @@
 # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
 
 subdir-ccflags-y := -Wno-override-init # used frequently for "inheritance"
+subdir-ccflags-y += -Wunused-const-variable
 subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror
 subdir-ccflags-y += \
 	$(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA)
-- 
2.15.0.rc0



More information about the Intel-gfx mailing list