[PATCH] Another unused variable warning when building without libosmgpsmap.
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Sat Mar 2 03:01:33 PST 2013
gtk-gui.c: In function 'preferences_dialog':
gtk-gui.c:670:30: warning: unused variable 'map_provider' [-Wunused-variable]
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com>
---
gtk-gui.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gtk-gui.c b/gtk-gui.c
index c438be4..b7a631e 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -667,7 +667,10 @@ static void preferences_dialog(GtkWidget *w, gpointer data)
{
int result;
GtkWidget *dialog, *notebook, *font, *frame, *box, *hbox, *vbox, *button;
- GtkWidget *xmlfile_button, *map_provider;
+ GtkWidget *xmlfile_button;
+#if HAVE_OSM_GPS_MAP
+ GtkWidget *map_provider;
+#endif
GtkWidget *entry_po2, *entry_pn2, *entry_phe, *entry_mod, *entry_gflow, *entry_gfhigh;
const char *current_default, *new_default;
char threshold_text[10], mod_text[10], utf8_buf[128];
--
1.7.10.4
More information about the subsurface
mailing list