aboutsummaryrefslogtreecommitdiff
blob: cbae28fd595bed2219d1bd1a6f643a7ffb200f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- dmd2/dmd/src/posix.mak
+++ dmd2/dmd/src/posix.mak
@@ -83,7 +83,13 @@ endif
 else
 # Default Warnings
 WARNINGS := -Wno-deprecated -Wstrict-aliasing
-ifeq ($(HOST_CC), clang++)
+# GCC Specific
+ifeq ($(findstring g++,$(HOST_CC)), g++)
+WARNINGS := $(WARNINGS) \
+        -Wno-narrowing
+endif
+# Clang Specific
+ifeq ($(findstring clang++,$(HOST_CC)), clang++)
 WARNINGS := $(WARNINGS) \
     -Wno-logical-op-parentheses \
     -Wno-dynamic-class-memaccess \