From: Chengwei Yang Date: Thu, 27 Jun 2013 04:56:20 +0000 (+0800) Subject: Ignore more unused staff if build with tests but without asserts X-Git-Tag: dbus-1.8.2~225 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=014ea556251259cd3c6965b78b42ebb903291e77;p=platform%2Fupstream%2Fdbus.git 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 Reviewed-by: Simon McVittie --- diff --git a/configure.ac b/configure.ac index c80fcfc..8caea40 100644 --- a/configure.ac +++ b/configure.ac @@ -273,6 +273,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