1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

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

View File

@ -38,8 +38,9 @@ CXXFLAGS += -O0 -g
else
CXXFLAGS += -O2
endif
CXXFLAGS += -Wall -W -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Werror
##CXXFLAGS += -Wshadow
CXXFLAGS_WERROR = -Werror
CXXFLAGS += -Wall -W -Wcast-align -Wcast-qual -Wpointer-arith -Wshadow -Wwrite-strings
CXXFLAGS += $(CXXFLAGS_WERROR)
endif
CPPFLAGS += $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)
CXXLD ?= $(CXX)