diff --git a/src/posix.mak b/src/posix.mak index f30d2217ee51..ced82928d90f 100644 --- a/src/posix.mak +++ b/src/posix.mak @@ -188,13 +188,6 @@ endif else # Default Warnings WARNINGS := -Wno-deprecated -Wstrict-aliasing -Werror -# Clang Specific -ifeq ($(CXX_KIND), clang++) -WARNINGS += \ - -Wno-logical-op-parentheses \ - -Wno-dynamic-class-memaccess \ - -Wno-switch -endif endif OS_UPCASE := $(shell echo $(OS) | tr '[a-z]' '[A-Z]') @@ -211,6 +204,11 @@ ifeq ($(CXX_KIND), g++) CXXFLAGS += \ -std=gnu++98 endif +# Clang Specific +ifeq ($(CXX_KIND), clang++) +CXXFLAGS += \ + -xc++ +endif DFLAGS := -version=MARS $(PIC) # Enable D warnings DFLAGS += -w -de