aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-widget.c
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/empathy-contact-widget.c
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/empathy-contact-widget.c')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c14
1 files changed, 2 insertions, 12 deletions
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)
{