diff --git a/source/Makefile.mk b/source/Makefile.mk index a1b9c1c20..3e62f5079 100644 --- a/source/Makefile.mk +++ b/source/Makefile.mk @@ -183,10 +183,13 @@ BASE_FLAGS += -Wstrict-aliasing -fstrict-aliasing BASE_FLAGS += -Wstrict-overflow -fstrict-overflow BASE_FLAGS += -Wduplicated-branches -Wduplicated-cond -Wnull-dereference CFLAGS += -Winit-self -Wjump-misses-init -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -Wwrite-strings -CXXFLAGS += -Wc++0x-compat -Wc++11-compat -Weffc++ +CXXFLAGS += -Wc++0x-compat -Wc++11-compat CXXFLAGS += -Wnon-virtual-dtor -Woverloaded-virtual # CXXFLAGS += -Wold-style-cast -Wuseless-cast CXXFLAGS += -Wzero-as-null-pointer-constant +ifneq ($(DEBUG),true) +CXXFLAGS += -Weffc++ +endif ifeq ($(LINUX),true) BASE_FLAGS += -isystem /opt/kxstudio/include endif