summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-12-24 12:12:02 +0100
committerLars-Dominik Braun <lars@6xq.net>2011-12-24 12:12:02 +0100
commit656f101dd38bb616d4dd0479ff26736a8d5d11ee (patch)
tree32a675443fd8c3705459de0d2891e0cd310d0aed
parentcad2be0b4ffd9490ca83cdb355b6402838811413 (diff)
downloadpianobar-656f101dd38bb616d4dd0479ff26736a8d5d11ee.tar.gz
pianobar-656f101dd38bb616d4dd0479ff26736a8d5d11ee.tar.bz2
pianobar-656f101dd38bb616d4dd0479ff26736a8d5d11ee.zip
Enable a lot of GCC warnings for debug target
-rw-r--r--Makefile27
1 files changed, 26 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index df92240..1cbbcee 100644
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,32 @@ clean:
all: pianobar
debug: pianobar
-debug: CFLAGS=-pedantic -ggdb -Wall -Wmissing-declarations -Wshadow -Wcast-qual
+debug: CFLAGS=-pedantic -ggdb -Wall -Wmissing-declarations -Wshadow -Wcast-qual \
+ -Wformat=2 -Winit-self -Wignored-qualifiers -Wmissing-include-dirs \
+ -Wfloat-equal -Wundef -Wpointer-arith -Wtype-limits -Wbad-function-cast \
+ -Wcast-align -Wclobbered -Wempty-body -Wjump-misses-init -Waddress \
+ -Wlogical-op -Waggregate-return -Wstrict-prototypes \
+ -Wold-style-declaration -Wold-style-definition -Wmissing-parameter-type \
+ -Wmissing-prototypes -Wmissing-field-initializers -Woverride-init \
+ -Wpacked -Wredundant-decls -Wnested-externs
+# warnings for gcc 4.5; disabled:
+# -Wswitch-default: too many bogus warnings
+# -Wswitch-enum: too many bogus warnings
+# -Wunused-parameter: too many bogus warnings
+# -Wstrict-overflow: depends on optimization level
+# -Wunsafe-loop-optimizations: depends on optimization level
+# -Wwrite-strings: to be enabled
+# -Wconversion: too many (bogus?) warnings
+# -Wsign-conversion: same here
+# -Wsign-compare: to be enabled
+# -Wmissing-noreturn: recommendation
+# -Wmissing-format-attribute: same here
+# -Wpadded: have a closer look at this one
+# -Winline: we don't care
+# -Winvalid-pch: not our business
+# -Wdisabled-optimization: depends on optimization level
+# -Wstack-protector: we don't use stack protector
+# -Woverlength-strings: over-portability-ish
waitress-test: CFLAGS+= -DTEST
waitress-test: ${LIBWAITRESS_OBJ}