aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorMarc Plano-Lesay <marc.planolesay@gmail.com>2011-05-04 20:35:07 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-05 15:45:18 +0800
commit981d17576bb3451bd4ac79cbd2de079fb64d260b (patch)
treeea826ef0ce7b0ab141bdc615b7641eda3a164654 /libempathy-gtk
parent9a1a49ed9ddf5a3d1da99eabca27882705688545 (diff)
downloadgsoc2013-empathy-981d17576bb3451bd4ac79cbd2de079fb64d260b.tar
gsoc2013-empathy-981d17576bb3451bd4ac79cbd2de079fb64d260b.tar.gz
gsoc2013-empathy-981d17576bb3451bd4ac79cbd2de079fb64d260b.tar.bz2
gsoc2013-empathy-981d17576bb3451bd4ac79cbd2de079fb64d260b.tar.lz
gsoc2013-empathy-981d17576bb3451bd4ac79cbd2de079fb64d260b.tar.xz
gsoc2013-empathy-981d17576bb3451bd4ac79cbd2de079fb64d260b.tar.zst
gsoc2013-empathy-981d17576bb3451bd4ac79cbd2de079fb64d260b.zip
fix unused-but-set-variable warnings
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget.c3
-rw-r--r--libempathy-gtk/empathy-contact-widget.c14
2 files changed, 2 insertions, 15 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 6bbfc9a46..dfa9ecd35 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -2210,9 +2210,6 @@ do_dispose (GObject *obj)
if (priv->settings != NULL)
{
- TpAccount *account;
- account = empathy_account_settings_get_account (priv->settings);
-
g_object_unref (priv->settings);
priv->settings = NULL;
}
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index acf206ad3..c4e3748b4 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -818,8 +818,10 @@ contact_widget_location_update (EmpathyContactWidget *information)
{
GHashTable *location;
GValue *value;
+#ifdef HAVE_LIBCHAMPLAIN
gdouble lat = 0.0, lon = 0.0;
gboolean has_position = TRUE;
+#endif
GtkWidget *label;
guint row = 0;
static const gchar* ordered_geolocation_keys[] = {
@@ -853,18 +855,6 @@ contact_widget_location_update (EmpathyContactWidget *information)
return;
}
- value = g_hash_table_lookup (location, EMPATHY_LOCATION_LAT);
- if (value == NULL)
- has_position = FALSE;
- else
- lat = g_value_get_double (value);
-
- value = g_hash_table_lookup (location, EMPATHY_LOCATION_LON);
- if (value == NULL)
- has_position = FALSE;
- else
- lon = g_value_get_double (value);
-
value = g_hash_table_lookup (location, EMPATHY_LOCATION_TIMESTAMP);
if (value == NULL)
{