diff options
author | Marco Leise <marco.leise@gmx.de> | 2017-10-14 15:28:07 +0200 |
---|---|---|
committer | Marco Leise <marco.leise@gmx.de> | 2017-10-15 10:15:04 +0200 |
commit | 8e78602040e763872bf0cc9849a6c8f67a1d3a6c (patch) | |
tree | 4ef23b0447c503653fb8aac021df3948749b151b /dev-lang/dmd/files/2.066-no-narrowing.patch | |
parent | Disabled DCD 0.9.1 tests as they fail with permssion denied errors. (diff) | |
download | dlang-8e78602040e763872bf0cc9849a6c8f67a1d3a6c.tar.gz dlang-8e78602040e763872bf0cc9849a6c8f67a1d3a6c.tar.bz2 dlang-8e78602040e763872bf0cc9849a6c8f67a1d3a6c.zip |
Backported https://github.com/dlang/dmd/commit/4c57c560b597915d99cda716303f2bd6a0e4d87f#diff-fc923c7ff79f8dd827793581118e03e6 in order to close #60 (-Wnarrowing warnings with GCC 6).
Diffstat (limited to 'dev-lang/dmd/files/2.066-no-narrowing.patch')
-rw-r--r-- | dev-lang/dmd/files/2.066-no-narrowing.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-lang/dmd/files/2.066-no-narrowing.patch b/dev-lang/dmd/files/2.066-no-narrowing.patch new file mode 100644 index 0000000..8cf1ec0 --- /dev/null +++ b/dev-lang/dmd/files/2.066-no-narrowing.patch @@ -0,0 +1,14 @@ +--- dmd2/dmd/src/posix.mak ++++ dmd2/dmd/src/posix.mak +@@ -83,6 +83,11 @@ endif + else + # Default Warnings + WARNINGS := -Wno-deprecated -Wstrict-aliasing ++# GCC Specific ++ifeq ($(findstring g++,$(HOST_CC)), g++) ++WARNINGS := $(WARNINGS) \ ++ -Wno-narrowing ++endif + endif + + OS_UPCASE := $(shell echo $(OS) | tr '[a-z]' '[A-Z]') |