projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40f4609
)
drm/i915: Disable unused-but-set compiler warning
author
Chris Wilson
<
[email protected]
>
Thu, 8 Feb 2018 16:16:39 +0000
(16:16 +0000)
committer
Chris Wilson
<
[email protected]
>
Thu, 8 Feb 2018 17:09:34 +0000
(17:09 +0000)
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 <
[email protected]
>
Cc: Joonas Lahtinen <
[email protected]
>
Cc: Maarten Lankhorst <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Joonas Lahtinen <
[email protected]
>
Reviewed-by: Maarten Lankhorst <
[email protected]
>
drivers/gpu/drm/i915/Makefile
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/Makefile
b/drivers/gpu/drm/i915/Makefile
index 4d9e2f855e9d8f3e2a729db3e0ab93c704546a1f..838f9b48246bda342d6f07c551d204d8f783f554 100644
(file)
--- a/
drivers/gpu/drm/i915/Makefile
+++ b/
drivers/gpu/drm/i915/Makefile
@@
-17,6
+17,7
@@
subdir-ccflags-y += $(call cc-disable-warning, unused-parameter)
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