summaryrefslogtreecommitdiff
path: root/navit/maptool
diff options
context:
space:
mode:
authorStefan Wildemann <metalstrolch@users.noreply.github.com>2019-11-05 12:14:01 +0100
committerjkoan <jkoan@users.noreply.github.com>2019-11-05 12:14:01 +0100
commitfbe6d4cf832a9af1846a75834c8a392eee984cb7 (patch)
tree96164622a1847c3d4c02c450f0fd6c2cbf0ed534 /navit/maptool
parent39f745bc282c45443deef8e13b381f207207da58 (diff)
downloadnavit-fbe6d4cf832a9af1846a75834c8a392eee984cb7.tar.gz
fix:various:fix compiler warnings (#940)
* fix:core:build without warnings on my setup navit_core build without non avoidable warnings. * fix:dbus:fix compiler warnings * fix:gui/internal: remov compiler warnings * fix:various:remove compiler warnings * fix:various remove compiler warnings. * fix:various: fix android compiler warnings
Diffstat (limited to 'navit/maptool')
-rw-r--r--navit/maptool/osm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/navit/maptool/osm.c b/navit/maptool/osm.c
index c6308c2b4..ddf4e99a1 100644
--- a/navit/maptool/osm.c
+++ b/navit/maptool/osm.c
@@ -2592,6 +2592,11 @@ static void process_associated_streets_setup(FILE *in, struct relations *relatio
relations_add_relation_default_entry(relations, relations_func);
}
+/* to adapt g_free to GFunc */
+static void g_free_helper(void * data, void * user_data) {
+ g_free(data);
+}
+
void process_associated_streets(FILE *in, struct files_relation_processing *files_relproc) {
struct relations *relations=relations_new();
struct process_relation_member_func_priv fp= {NULL,NULL};
@@ -2618,7 +2623,7 @@ void process_associated_streets(FILE *in, struct files_relation_processing *file
}
relations_destroy(relations);
- g_list_foreach(fp.allocations, (GFunc)free, NULL);
+ g_list_foreach(fp.allocations, (GFunc)g_free_helper, NULL);
g_list_free(fp.allocations);
}
@@ -2674,7 +2679,7 @@ void process_house_number_interpolations(FILE *in, struct files_relation_process
}
relations_destroy(relations);
- g_list_foreach(fp.allocations, (GFunc)free, NULL);
+ g_list_foreach(fp.allocations, (GFunc)g_free_helper, NULL);
g_list_free(fp.allocations);
}