Skip to content

Commit

Permalink
drivers/gpu/drm/tilcdc: Makefile, only -Werror when no -W* in EXTRA_C…
Browse files Browse the repository at this point in the history
…FLAGS

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

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Chen Gang authored and Dave Airlie committed Apr 24, 2013
1 parent 9e48854 commit 816175d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/gpu/drm/tilcdc/Makefile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit 816175d

Please sign in to comment.