From 590f666ec9b4843d3db81233823a86e39829eaa8 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Fri, 16 Oct 2009 18:06:16 +0200 Subject: [PATCH] Enable -Wshadow compiler option. --- src/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index ecfdc35e..39a39787 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)