[gnome-maps/wip/rishi/silence-warnings: 3/5] lib: Silence -Wunused-variable



commit b473d58ac5cbfc70380ad8f2db55ac9a714a9234
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Oct 19 11:48:59 2018 +0200

    lib: Silence -Wunused-variable

 lib/maps-file-tile-source.c | 1 -
 lib/maps-osm-object.c       | 2 +-
 lib/maps-osm.c              | 3 ---
 3 files changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/lib/maps-file-tile-source.c b/lib/maps-file-tile-source.c
index 8d11e7d..dd8769e 100644
--- a/lib/maps-file-tile-source.c
+++ b/lib/maps-file-tile-source.c
@@ -544,7 +544,6 @@ tile_loaded_cb (GFile        *file,
                 CallbackData *user_data)
 {
   ChamplainMapSource *map_source = user_data->map_source;
-  ChamplainTileSource *tile_source = CHAMPLAIN_TILE_SOURCE (map_source);
   ChamplainMapSource *next_source = champlain_map_source_get_next_source (map_source);
   ChamplainTile *tile = user_data->tile;
   CallbackData *data;
diff --git a/lib/maps-osm-object.c b/lib/maps-osm-object.c
index f2881b7..48de6b9 100644
--- a/lib/maps-osm-object.c
+++ b/lib/maps-osm-object.c
@@ -234,7 +234,7 @@ maps_osm_object_foreach_tag (gpointer key, gpointer value, gpointer user_data)
       xmlNodePtr tag_node;
 
       tag_node = xmlNewNode (NULL, (xmlChar *) "tag");
-      xmlNewProp (tag_node, (xmlChar *) "k", (xmlChar *) key);
+      xmlNewProp (tag_node, (xmlChar *) "k", (xmlChar *) name);
       xmlNewProp (tag_node, (xmlChar *) "v", (xmlChar *) val);
       xmlAddChild (object_node, tag_node);
     }
diff --git a/lib/maps-osm.c b/lib/maps-osm.c
index db847dd..2c06d2f 100644
--- a/lib/maps-osm.c
+++ b/lib/maps-osm.c
@@ -66,7 +66,6 @@ parse_tag (const xmlAttr *attrs, GHashTable *tags)
   const xmlAttr *cur_attr;
   char *key;
   char *value;
-  char *result;
 
   key = NULL;
   value = NULL;
@@ -230,8 +229,6 @@ parse_node (const xmlNodePtr node, GError **error)
   const char *lon_string;
   double lon;
   
-  const xmlAttr *cur_attr;
-
   GHashTable *tags;
   GHashTable *attributes;
 


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