diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2013-04-07 20:11:21 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2013-04-12 23:05:58 +0100 |
commit | ff292d530c126191bf220f70a8d114aa8f54e4b9 (patch) | |
tree | ca16cdd62c0d14426dd6b5446631046f647aaac4 /configure.ac | |
parent | 97b3948a9fd86da7f80b0703060a0a3324f899e4 (diff) |
printf: enable and fix compiler warnings
But suppress -Wformat-nonliteral warnings since sprintf
is used with a runtime-generated format string in our
vasnprintf implementation.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 26ceca2c0..ca57a1fea 100644 --- a/configure.ac +++ b/configure.ac @@ -618,6 +618,10 @@ fi dnl define an ERROR_CFLAGS Makefile variable AG_GST_SET_ERROR_CFLAGS($FATAL_WARNINGS, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs $NO_WARNINGS]) +dnl special warning flags for gst/printf +AS_COMPILER_FLAG([-Wno-format-nonliteral], [PRINTF_CFLAGS="-Wno-format-nonliteral"]) +AC_SUBST(PRINTF_CFLAGS) + dnl define correct level for debugging messages AG_GST_SET_LEVEL_DEFAULT($GST_GIT) |