aboutsummaryrefslogtreecommitdiff
blob: f62dcac182d6a6bca2054b5fb9b0efe8e5c42689 (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
@@ -111,8 +111,13 @@ endif
 else
 # Default Warnings
 WARNINGS := -Wno-deprecated -Wstrict-aliasing
+# GCC Specific
+ifeq ($(findstring g++,$(HOST_CC)), g++)
+WARNINGS := $(WARNINGS) \
+        -Wno-narrowing
+endif
 # Clang Specific
-ifeq ($(HOST_CC), clang++)
+ifeq ($(findstring clang++,$(HOST_CC)), clang++)
 WARNINGS := $(WARNINGS) \
     -Wno-logical-op-parentheses \
     -Wno-dynamic-class-memaccess \