summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-03-01 18:15:52 +0000
committerSimon McVittie <smcv@collabora.com>2018-03-01 18:15:59 +0000
commit2154504764f249e2dd16a8f7ebf47238fae0976b (patch)
tree37e5de9f70bac8095873e147ee942e11379a9d54
parenteebe2476c37f7ecfaae2a9af2411c7121e856397 (diff)
Avoid -Wunused-function for iterate_both_main_loops() without containers
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--test/containers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/containers.c b/test/containers.c
index 3c5c6359..acac82a4 100644
--- a/test/containers.c
+++ b/test/containers.c
@@ -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,