configure: suppress warnings about unused variables if debugging system is disabled...
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 9 Nov 2011 00:36:51 +0000 (00:36 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 9 Nov 2011 00:36:51 +0000 (00:36 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=662952

common
configure.ac

diff --git a/common b/common
index e4a9407a51803016bab9918b03e2034981886bdb..63d592ed74618734d69438c770d6462efeb5ab9d 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit e4a9407a51803016bab9918b03e2034981886bdb
+Subproject commit 63d592ed74618734d69438c770d6462efeb5ab9d
index 8284534db95e9d42fe92ceb8b9f829604358b0b2..b2b17f2a864edbeaf67714072c6c893aebdac996 100644 (file)
@@ -372,20 +372,25 @@ AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO],
   ["${srcdir}/gst-plugins-base.doap"],
   [$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO])
 
+# 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
 dnl -Wformat-nonliteral - see ext/pango/gstclockoverlay.c and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438
 AG_GST_SET_ERROR_CFLAGS($GST_GIT, [
     -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
     -Wwrite-strings -Wformat-nonliteral -Wformat-security
     -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return
-    -Wno-multichar -Wnested-externs ])
+    -Wno-multichar -Wnested-externs $NO_WARNINGS])
 
 dnl define an ERROR_CXXFLAGS Makefile variable
 AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [
     -Wmissing-declarations -Wredundant-decls -Wundef
     -Wwrite-strings -Wformat-nonliteral -Wformat-security
     -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return
-    -Wno-multichar])
+    -Wno-multichar $NO_WARNINGS])
 
 dnl define correct level for debugging messages
 AG_GST_SET_LEVEL_DEFAULT($GST_GIT)