From 73be2b4b1af0aeb1816bcaf53511fad40d260290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 9 Nov 2011 00:36:51 +0000 Subject: [PATCH] configure: suppress warnings about unused variables if debugging system is disabled in core https://bugzilla.gnome.org/show_bug.cgi?id=662952 --- common | 2 +- configure.ac | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/common b/common index e4a9407a51..63d592ed74 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit e4a9407a51803016bab9918b03e2034981886bdb +Subproject commit 63d592ed74618734d69438c770d6462efeb5ab9d diff --git a/configure.ac b/configure.ac index 8284534db9..b2b17f2a86 100644 --- a/configure.ac +++ b/configure.ac @@ -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)