mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-31 15:50:13 +01:00
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 <chengwei.yang@intel.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
15bc915d74
commit
014ea55625
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue