summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebrn@axis.com>2012-05-25 16:43:38 +0200
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-06-09 19:11:16 +0100
commitef29cc6d78312c303f1f79fdc4c7623436be5eaa (patch)
tree1f6b46f89e66d681d061a648dd767a5ffa395c59 /configure.ac
parent62532769a70e535d90e5065f1bdecab39fa14ed6 (diff)
configure: suppress some warnings when debug is disabled
Warnings about unused variables should be suppressed if core has the debug system disabled. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676824
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 83f1f79..50fe7a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -159,8 +159,13 @@ AC_SUBST(GST_LICENSE)
dnl set location of plugin directory
AG_GST_SET_PLUGINDIR
+# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
+dnl make sure it doesn't complain about unused variables if debugging is disabled
+NO_WARNINGS=""
+AG_GST_CHECK_GST_DEBUG_DISABLED([NO_WARNINGS="-Wno-unused"], [NO_WARNINGS=""])
+
dnl define an ERROR_CFLAGS Makefile variable
-AG_GST_SET_ERROR_CFLAGS($GST_GIT)
+AG_GST_SET_ERROR_CFLAGS($GST_GIT, [$NO_WARNINGS])
dnl define correct level for debugging messages
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)