[gnome-online-accounts/gnome-3-8] daemon: Silence -Wunused-variable when building without Kerberos



commit 993c730baff447f7d2e52b55241ad25c276a44c5
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Apr 16 16:07:41 2013 +0200

    daemon: Silence -Wunused-variable when building without Kerberos

 src/daemon/goadaemon.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index 697601a..2fb6173 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -184,7 +184,9 @@ goa_daemon_init (GoaDaemon *daemon)
   static volatile GQuark goa_error_domain = 0;
   GoaObjectSkeleton *object;
   gchar *path;
+#ifdef GOA_KERBEROS_ENABLED
   GError *error = NULL;
+#endif
 
   /* this will force associating errors in the GOA_ERROR error domain
    * with org.freedesktop.Goa.Error.* errors via g_dbus_error_register_error_domain().


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