summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-04-09 12:47:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-04-09 12:47:34 +0100
commitde61681574eb7d6e0e497ea7f25797e3d9b20ac4 (patch)
treed2f43c551d2e799a5edfc287fcc4a11501b350cb
parent113ec6bf0c8ed1ff12293d1ed2a2de9bd5b9904b (diff)
build: Disable -Wset-but-unused-variable
This is too noisy in the current build, and masking more important warnings. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--build/configure.ac.warnings5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/configure.ac.warnings b/build/configure.ac.warnings
index 3eb0104b..f1b17f43 100644
--- a/build/configure.ac.warnings
+++ b/build/configure.ac.warnings
@@ -21,6 +21,9 @@ MAYBE_WARN="-Wall -Wextra \
-Wno-missing-field-initializers -Wno-unused-parameter \
-Wno-attributes -Wno-long-long -Winline"
+# -Wunused-but-set-variable is too noisy at present
+NO_WARN="-Wno-unused-but-set-variable"
+
dnl Sun Studio 12 likes to rag at us for abusing enums like
dnl having cairo_status_t variables hold cairo_int_status_t
dnl values. It's bad, we know. Now please be quiet.
@@ -34,6 +37,8 @@ MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common -flto"
dnl Also to turn various gcc/glibc-specific preprocessor checks
MAYBE_WARN="$MAYBE_WARN -Wp,-D_FORTIFY_SOURCE=2"
+MAYBE_WARN="$MAYBE_WARN $NO_WARN"
+
# invalidate cached value if MAYBE_WARN has changed
if test "x$cairo_cv_warn_maybe" != "x$MAYBE_WARN"; then
unset cairo_cv_warn_cflags