summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-11-24 01:14:03 +0100
committerJakob Bornecrantz <[email protected]>2009-11-24 01:16:17 +0100
commitacc51ac0ace11bb375241467ba35e1014f5fb997 (patch)
tree17885fa3b62e98baa228153a9bb6871abe6d403d /src
parent326b66d724754ca97012501db1c7c62d7d41a457 (diff)
svga: Filter out pendantic and ansi flags
Rather have the driver compile without the flags then having to disable them.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/Makefile b/src/gallium/drivers/svga/Makefile
index d1413319c97..8158364d252 100644
--- a/src/gallium/drivers/svga/Makefile
+++ b/src/gallium/drivers/svga/Makefile
@@ -50,6 +50,9 @@ C_SOURCES = \
LIBRARY_INCLUDES = \
-I$(TOP)/src/gallium/drivers/svga/include
+# With linux-debug we get a lots of warnings, filter out the bad flags.
+CFLAGS := $(filter-out -pedantic, $(filter-out -ansi, $(CFLAGS)))
+
LIBRARY_DEFINES = \
-std=gnu99 -fvisibility=hidden \
-DHAVE_STDINT_H -DHAVE_SYS_TYPES_H