[PATCH 2/2] Unused variable warning when building without libosmgpsmap.

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Wed Feb 27 02:57:15 PST 2013


info.c: In function 'dive_info_widget':
info.c:759:48: warning: unused variable 'image' [-Wunused-variable]

Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com>
---
 info.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/info.c b/info.c
index 44026bd..5f979eb 100644
--- a/info.c
+++ b/info.c
@@ -756,7 +756,10 @@ static void location_entry_change_cb(GtkComboBox *location, gpointer *userdata)

 static void dive_info_widget(GtkWidget *box, struct dive *dive, struct dive_info *info, gboolean multi)
 {
-	GtkWidget *hbox, *label, *frame, *equipment, *image;
+	GtkWidget *hbox, *label, *frame, *equipment;
+#if HAVE_OSM_GPS_MAP
+	GtkWidget *image;
+#endif
 	char buffer[128];
 	char airtemp[6];
 	const char *unit;
-- 
1.7.10.4


More information about the subsurface mailing list