From e79407de1a9a7189442832bcbc43c123e61d7784 Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Thu, 27 Jun 2013 12:56:20 +0800 Subject: [PATCH] Ignore more unused staff if build with tests but without asserts https://bugs.freedesktop.org/show_bug.cgi?id=66069 Signed-off-by: Chengwei Yang --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 782dfba..0126d4d 100644 --- a/configure.ac +++ b/configure.ac @@ -278,6 +278,11 @@ if test x$enable_asserts = xno; then AC_DEFINE(DBUS_DISABLE_ASSERT,1,[Disable assertion checking]) DISABLE_UNUSED_WARNINGS="unused-label" R_DYNAMIC_LDFLAG="" + if test x$enable_embedded_tests = xyes; then + DISABLE_UNUSED_WARNINGS="$DISABLE_UNUSED_WARNINGS \ + unused-but-set-variable unused-variable \ + unused-function" + fi else # -rdynamic is needed for glibc's backtrace_symbols to work. # No clue how much overhead this adds, but it's useful -- 1.7.9.5