From cd1493447dc02baa3148ff412f070e6e65e6161d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 25 May 2003 16:09:26 +0000 Subject: Some additional warnings svn-id: r7960 --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 747d138664..89ed8fc454 100644 --- a/Makefile +++ b/Makefile @@ -17,13 +17,18 @@ CP := cp # Default compilation parameters. Normally don't edit these # ####################################################################### -CXXFLAGS:= -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar -Wno-unknown-pragmas +CXXFLAGS:= -g -O DEFINES := LDFLAGS := INCLUDES:= -I. -Icommon LIBS := OBJS := +# Turn on useful warnings +CXXFLAGS+= -Wall -W -pedantic -ansi -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion +CXXFLAGS+= -Wshadow -Wstrict-prototypes -Wuninitialized +CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-unused-parameter -Wno-reorder + # Load the build rules & settings for the chosen backend -include build.rules @@ -43,8 +48,8 @@ LIBS += -lmad # DEFINES += -DUSE_ALSA # LIBS += -lasound -# Uncomment this for stricter compile time code verification -# CXXFLAGS+= -Wshadow -Werror +# Uncomment this to cause warnings to be treated as errors +# CXXFLAGS+= -Werror ####################################################################### -- cgit v1.2.3