Enable -Wshadow compiler option.

This commit is contained in:
Markus F.X.J. Oberhumer
2009-10-16 18:06:16 +02:00
parent 9adaee915b
commit 590f666ec9
+3 -2
View File
@@ -38,8 +38,9 @@ CXXFLAGS += -O0 -g
else else
CXXFLAGS += -O2 CXXFLAGS += -O2
endif endif
CXXFLAGS += -Wall -W -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Werror CXXFLAGS_WERROR = -Werror
##CXXFLAGS += -Wshadow CXXFLAGS += -Wall -W -Wcast-align -Wcast-qual -Wpointer-arith -Wshadow -Wwrite-strings
CXXFLAGS += $(CXXFLAGS_WERROR)
endif endif
CPPFLAGS += $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) CPPFLAGS += $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)
CXXLD ?= $(CXX) CXXLD ?= $(CXX)