build: enable -Wcast-qual -Wwrite-strings CFLAGS

We're pretty careful about using const these days, so
enable these warnings to keep us that way.
This commit is contained in:
Eric Wong 2008-09-07 18:37:29 +02:00 committed by Max Kellermann
parent 86d261bdb5
commit b67bb05d05
2 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,8 @@ CC = gcc
CFLAGS = -O2 -Wall \
-Wmissing-prototypes -Wextra -Wno-unused-parameter \
-Wno-deprecated-declarations -Wmissing-prototypes \
-Wdeclaration-after-statement -Wshadow
-Wdeclaration-after-statement -Wshadow -Wpointer-arith \
-Wstrict-prototypes -Wcast-qual -Wwrite-strings
LDFLAGS = -Wl,-O1

View File

@ -32,6 +32,8 @@ then
MPD_CHECK_FLAG([-Wshadow])
MPD_CHECK_FLAG([-Wpointer-arith])
MPD_CHECK_FLAG([-Wstrict-prototypes])
MPD_CHECK_FLAG([-Wcast-qual])
MPD_CHECK_FLAG([-Wwrite-strings])
fi
if test -z "$prefix" || test "x$prefix" = xNONE; then