Skip to content

Commit

Permalink
Turn on -Wno-narrowing for g++ by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed Jul 26, 2015
1 parent e30c4a1 commit 4c57c56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/posix.mak
Expand Up @@ -108,6 +108,7 @@ endif
else
# Default Warnings
WARNINGS := -Wno-deprecated -Wstrict-aliasing
# Clang Specific
ifeq ($(HOST_CC), clang++)
WARNINGS := $(WARNINGS) \
-Wno-logical-op-parentheses \
Expand All @@ -125,6 +126,11 @@ CFLAGS := $(WARNINGS) \
-fno-exceptions -fno-rtti \
-D__pascal= -DMARS=1 -DTARGET_$(OS_UPCASE)=1 -DDM_TARGET_CPU_$(TARGET_CPU)=1 \
$(MODEL_FLAG)
# GCC Specific
ifeq ($(HOST_CC), g++)
CFLAGS := $(CFLAGS) \
-std=gnu++98
endif
# Default D compiler flags for all source files
DFLAGS=

Expand Down

0 comments on commit 4c57c56

Please sign in to comment.