[gnome-desktop-testing] Fix build warning when systemd isn't enabled
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop-testing] Fix build warning when systemd isn't enabled
- Date: Thu, 6 Aug 2015 23:14:28 +0000 (UTC)
commit 7a0591350e157bfaef0b5bbe9348f6a0392069c6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri May 23 18:13:15 2014 -0400
Fix build warning when systemd isn't enabled
src/gnome-desktop-testing-runner.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-desktop-testing-runner.c b/src/gnome-desktop-testing-runner.c
index e1d315b..3f47724 100755
--- a/src/gnome-desktop-testing-runner.c
+++ b/src/gnome-desktop-testing-runner.c
@@ -382,10 +382,10 @@ on_test_exited (GObject *obj,
g_task_return_boolean (task, TRUE);
}
+#ifdef ENABLE_SYSTEMD_JOURNAL
static void
setup_test_child (gpointer user_data)
{
-#ifdef ENABLE_SYSTEMD_JOURNAL
Test *test = user_data;
int journalfd;
@@ -400,8 +400,8 @@ setup_test_child (gpointer user_data)
ret = dup2 (journalfd, 2);
while (ret == -1 && errno == EINTR);
}
-#endif
}
+#endif
static gboolean
cancel_test (gpointer data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]