]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Avoid -Wunused-function for iterate_both_main_loops() without containers
authorSimon McVittie <smcv@collabora.com>
Thu, 1 Mar 2018 18:15:52 +0000 (18:15 +0000)
committerSimon McVittie <smcv@collabora.com>
Thu, 1 Mar 2018 18:15:59 +0000 (18:15 +0000)
Signed-off-by: Simon McVittie <smcv@collabora.com>
test/containers.c

index 3c5c63597dfbcebb29f15a2d5efe72def522f122..acac82a4648e0b2c62af3871425a8785ea3d3c8a 100644 (file)
@@ -104,6 +104,7 @@ name_gone_set_boolean_cb (GDBusConnection *conn,
 }
 #endif
 
+#ifdef HAVE_CONTAINERS_TEST
 static void
 iterate_both_main_loops (TestMainContext *ctx)
 {
@@ -114,6 +115,7 @@ iterate_both_main_loops (TestMainContext *ctx)
   test_main_context_iterate (ctx, FALSE);
   g_main_context_iteration (NULL, FALSE);
 }
+#endif
 
 static DBusHandlerResult
 observe_shouting_cb (DBusConnection *observer,