summaryrefslogtreecommitdiff
path: root/gsystem-log.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-05-09 15:37:42 -0400
committerColin Walters <walters@verbum.org>2013-05-09 15:37:42 -0400
commitb2a65b235600e340fada441de7e131de9d52d25e (patch)
tree0666a9c1fa4364ba9ce51336ae134ac951b4452d /gsystem-log.c
parentba6376041cbab2cc74bd54410e0734602768ecbf (diff)
downloadlibgsystem-b2a65b235600e340fada441de7e131de9d52d25e.tar.gz
log: Squash warning when building without systemd
Diffstat (limited to 'gsystem-log.c')
-rw-r--r--gsystem-log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gsystem-log.c b/gsystem-log.c
index 032e6cb..134fce8 100644
--- a/gsystem-log.c
+++ b/gsystem-log.c
@@ -93,8 +93,10 @@ void
gs_log_structured_print (const char *message,
const char *const *keys)
{
+#ifdef ENABLE_SYSTEMD_JOURNAL
static gsize initialized;
static gboolean stdout_is_socket;
+#endif
gs_log_structured (message, keys);