[gnome-online-accounts/wip/modules: 5/9] telepathy: Silence -Wunused-but-set-variable



commit d83748d809a23eb518ef61a2887d5505b6330d62
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Apr 30 13:51:31 2014 +0200

    telepathy: Silence -Wunused-but-set-variable
    
    ... when building without Google or Facebook.
    
    Fixes: https://bugzilla.gnome.org/729173

 src/goabackend/goatelepathyfactory.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goatelepathyfactory.c b/src/goabackend/goatelepathyfactory.c
index a782110..411c15a 100644
--- a/src/goabackend/goatelepathyfactory.c
+++ b/src/goabackend/goatelepathyfactory.c
@@ -68,12 +68,18 @@ get_protocols_cb (GObject      *source,
                   gpointer      user_data)
 {
   GSimpleAsyncResult *outer_result = user_data;
-  GQuark facebook_quark, google_talk_quark;
   GList *protocols = NULL;
   GList *ret;
   GList *l;
   GError *error = NULL;
 
+#if GOA_FACEBOOK_ENABLED
+  GQuark facebook_quark;
+#endif
+#if GOA_GOOGLE_ENABLED
+  GQuark google_talk_quark;
+#endif
+
   if (!tpaw_protocol_get_all_finish (&protocols, res, &error))
     {
       g_simple_async_result_take_error (outer_result, error);
@@ -82,8 +88,12 @@ get_protocols_cb (GObject      *source,
       return;
     }
 
+#if GOA_FACEBOOK_ENABLED
   facebook_quark = g_quark_from_static_string ("facebook");
+#endif
+#if GOA_GOOGLE_ENABLED
   google_talk_quark = g_quark_from_static_string ("google-talk");
+#endif
 
   ret = NULL;
   for (l = protocols; l != NULL; l = l->next)


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