From: Chris Wilson Date: Thu, 8 Feb 2018 16:16:39 +0000 Subject: drm/i915: Disable unused-but-set compiler warning Git-commit: 6a05d290046447fca311022004a4725f3f627dc9 Patch-mainline: v4.17-rc1 References: FATE#326289 FATE#326079 FATE#326049 FATE#322398 FATE#326166 The unused-but-set warning enabled by W=1 catches out a lot of the atomic helper iterator macros and drown us in their noise (or trip over Werror and die). Path of least resistance is to ignore the warning. Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Maarten Lankhorst Link: https://patchwork.freedesktop.org/patch/msgid/20180208161639.27511-1-chris@chris-wilson.co.uk Reviewed-by: Joonas Lahtinen Reviewed-by: Maarten Lankhorst Acked-by: Petr Tesarik --- drivers/gpu/drm/i915/Makefile | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/i915/Makefile +++ b/drivers/gpu/drm/i915/Makefile @@ -16,6 +16,7 @@ subdir-ccflags-y += $(call cc-disable-wa subdir-ccflags-y += $(call cc-disable-warning, type-limits) subdir-ccflags-y += $(call cc-disable-warning, missing-field-initializers) subdir-ccflags-y += $(call cc-disable-warning, implicit-fallthrough) +subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable) subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror # Fine grained warnings disable