summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-02 16:17:12 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-02 16:17:12 +0000
commit27266755914423e383ffbf12034a55604cfa39c6 (patch)
treea2a7a537e07173903385e6ea151edacda9804aee /makefile
parentb1ee97db4c7900246752ef7d58a21a745871ad7f (diff)
moved compiler-specific warning generation to shared files (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile18
1 files changed, 2 insertions, 16 deletions
diff --git a/makefile b/makefile
index 75f419ce075..8e22b9dd7c5 100644
--- a/makefile
+++ b/makefile
@@ -557,22 +557,8 @@ COBJFLAGS += \
# warnings only applicable to C++ compiles
CPPONLYFLAGS += \
-Woverloaded-virtual
-
-ifneq (,$(findstring clang,$(CC)))
-CCOMFLAGS += \
- -Wno-cast-align \
- -Wno-tautological-compare \
- -Wno-constant-logical-operand \
- -Wno-format-security \
- -Wno-shift-count-overflow \
- -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
+
+include $(SRC)/build/cc_detection.mak
ifdef SANITIZE
CCOMFLAGS += -fsanitize=$(SANITIZE)