Commit b67bb05d authored by Eric Wong's avatar Eric Wong Committed by Max Kellermann

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.
parent 86d261bd
...@@ -10,7 +10,8 @@ CC = gcc ...@@ -10,7 +10,8 @@ CC = gcc
CFLAGS = -O2 -Wall \ CFLAGS = -O2 -Wall \
-Wmissing-prototypes -Wextra -Wno-unused-parameter \ -Wmissing-prototypes -Wextra -Wno-unused-parameter \
-Wno-deprecated-declarations -Wmissing-prototypes \ -Wno-deprecated-declarations -Wmissing-prototypes \
-Wdeclaration-after-statement -Wshadow -Wdeclaration-after-statement -Wshadow -Wpointer-arith \
-Wstrict-prototypes -Wcast-qual -Wwrite-strings
LDFLAGS = -Wl,-O1 LDFLAGS = -Wl,-O1
......
...@@ -32,6 +32,8 @@ then ...@@ -32,6 +32,8 @@ then
MPD_CHECK_FLAG([-Wshadow]) MPD_CHECK_FLAG([-Wshadow])
MPD_CHECK_FLAG([-Wpointer-arith]) MPD_CHECK_FLAG([-Wpointer-arith])
MPD_CHECK_FLAG([-Wstrict-prototypes]) MPD_CHECK_FLAG([-Wstrict-prototypes])
MPD_CHECK_FLAG([-Wcast-qual])
MPD_CHECK_FLAG([-Wwrite-strings])
fi fi
if test -z "$prefix" || test "x$prefix" = xNONE; then if test -z "$prefix" || test "x$prefix" = xNONE; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment