summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-02-20 20:01:35 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-02-20 20:01:35 +0000
commit982e007ab3af5aab8ca0d73778e4dd3e7fc24973 (patch)
tree911872b4d1a1783591093db9632c42adf97b2d18 /makefile
parent0a3992f25bdc1386a9ba6c7da7ef8aa44b5ec60e (diff)
fixed compilation with older clang versions (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/makefile b/makefile
index 51921ab9d7f..eb17b25003b 100644
--- a/makefile
+++ b/makefile
@@ -559,8 +559,13 @@ CCOMFLAGS += \
-Wno-constant-logical-operand \
-Wno-format-security \
-Wno-shift-count-overflow \
- -Wno-self-assign-field \
- -Wno-inline-new-delete
+ -Wno-self-assign-field
+
+# TODO: needs to use $(CC)
+TEST_CLANG := $(shell clang --version)
+ifeq ($(findstring 3.4,$(TEST_CLANG)),3.4)
+CCOMFLAGS += -Wno-inline-new-delete
+endif
endif
ifdef SANITIZE