Skip to contentSkip to conversation

drivers/gpu/drm/tilcdc: Makefile, only -Werror when no -W* in EXTRA_CFLAGS

PATCH In review Chen Gang 2 participants 3 messages Mar 10, 2013 – Mar 12, 2013

Subsystems (3)
lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 drivers/gpu/drm/tilcdc: Makefile, only -Werror when no -W* in EXTRA_CFLAGS

When make with EXTRA_CFLAGS=-W, it will report error. so give a check in Makefile.

---
 drivers/gpu/drm/tilcdc/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
drivers/gpu/drm/tilcdc/Makefile +4 -1
index deda656..562733a 100644
@@ -1,4 +1,7 @@
-ccflags-y := -Iinclude/drm -Werror
+ccflags-y := -Iinclude/drm
+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
+	ccflags-y += -Werror
+endif
 
 tilcdc-y := \
 	tilcdc_crtc.o \
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 6 lines · Chen Gang

When make with EXTRA_CFLAGS=-W, it will report error. so give a check in Makefile.

Quoted 19 lines
---
 drivers/gpu/drm/tilcdc/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
drivers/gpu/drm/tilcdc/Makefile +4 -2
index deda656..562733a 100644
@@ -1,4 +1,7 @@
-ccflags-y := -Iinclude/drm -Werror
+ccflags-y := -Iinclude/drm
+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
+       ccflags-y += -Werror
+endif
 
 tilcdc-y := \
        tilcdc_crtc.o \
--

1.7.7.6

author
#2 lore raw
Quoted 9 lines · Rob Clark
Quoted 6 lines · Chen Gang
Quoted 6 lines

When make with EXTRA_CFLAGS=-W, it will report error. so give a check in Makefile.

thanks.

Signature · 7 lines
Chen Gang

Asianux Corporation
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel