summaryrefslogtreecommitdiffstats
path: root/bus/test-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/test-main.c')
-rw-r--r--bus/test-main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bus/test-main.c b/bus/test-main.c
index 73491487..a8efc507 100644
--- a/bus/test-main.c
+++ b/bus/test-main.c
@@ -28,6 +28,7 @@
#include <dbus/dbus-sysdeps.h>
#include <dbus/dbus-internals.h>
+#ifdef DBUS_BUILD_TESTS
static void
die (const char *failure)
{
@@ -48,6 +49,7 @@ check_memleaks (const char *name)
die ("memleaks");
}
}
+#endif /* DBUS_BUILD_TESTS */
int
main (int argc, char **argv)