[libgsystem] log: Squash warning when building without systemd



commit b2a65b235600e340fada441de7e131de9d52d25e
Author: Colin Walters <walters verbum org>
Date:   Thu May 9 15:37:42 2013 -0400

    log: Squash warning when building without systemd

 gsystem-log.c |    2 ++
 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]