mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 22:48:07 +02:00
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>
This commit is contained in:
parent
113ec6bf0c
commit
de61681574
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue