From 85c972eac19dacc170ed7ec0f4de898cc599cf57 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 26 Sep 2007 10:13:10 +0300 Subject: [PATCH] Fix compilation problems with later gcc --- src/map.c | 6 +++--- src/map.h | 6 +++--- src/osm.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/map.c b/src/map.c index 9ccdede..34e7d0f 100644 --- a/src/map.c +++ b/src/map.c @@ -132,8 +132,8 @@ gdk_draw_line(_map_widget->window, * "Set" the mark, which translates the current GPS position into on-screen * units in preparation for drawing the mark with map_draw_mark(). */ -static void -map_set_mark() +void +map_set_mark(void) { _mark_x1 = unit2x(_pos.unitx); _mark_y1 = unit2y(_pos.unity); @@ -493,7 +493,7 @@ map_center_unit(_center.unitx + delta_unitx, _center.unity + delta_unity); * draw area of the new mark. */ void -map_move_mark() +map_move_mark(void) { /* Just queue the old and new draw areas. */ gtk_widget_queue_draw_area(_map_widget, diff --git a/src/map.h b/src/map.h index cac230d..21274c5 100644 --- a/src/map.h +++ b/src/map.h @@ -70,13 +70,13 @@ gdouble _map_location_dist; gboolean map_key_zoom_timeout(); -void map_set_autozoom(gboolean az); int map_zoom(gint zdir); -void map_move_mark(); +void map_set_autozoom(gboolean az); void map_render_path(Path * path, GdkGC ** gc); void map_center_unit(guint new_center_unitx, guint new_center_unity); void map_pan(gint delta_unitx, gint delta_unity); -void map_set_mark(); +void map_move_mark(void); +void map_set_mark(void); gboolean map_cb_configure(GtkWidget * widget, GdkEventConfigure * event); gboolean map_cb_expose(GtkWidget * widget, GdkEventExpose * event); diff --git a/src/osm.c b/src/osm.c index f571364..97301ba 100644 --- a/src/osm.c +++ b/src/osm.c @@ -353,7 +353,7 @@ sqlite3_exec(db, "PRAGMA cache_size = 8000;", NULL, NULL, NULL); /********************************************************************/ -static gboolean +gboolean db_insert_node(node *n) { gint32 lat, lon; -- 2.39.5