]> git.street.me.uk Git - andy/viking.git/commitdiff
[QA] Remove compiler warning when building for Windows
authorRob Norris <rw_norris@hotmail.com>
Tue, 22 Oct 2013 22:50:21 +0000 (23:50 +0100)
committerRob Norris <rw_norris@hotmail.com>
Thu, 24 Oct 2013 00:25:02 +0000 (01:25 +0100)
src/viktrwlayer_waypointlist.c

index 7ecd6771c413570d10a079f184cfc07659588573..d99e00888a77bebb7681c0ed4dd74eaba31b8e03 100644 (file)
@@ -200,12 +200,11 @@ static void trw_layer_waypoint_view ( menu_array_values values )
 
 static void trw_layer_show_picture ( menu_array_values values )
 {
 
 static void trw_layer_show_picture ( menu_array_values values )
 {
-       VikTrwLayer *vtl = VIK_TRW_LAYER(values[MA_VTL]);
        VikWaypoint *wpt = VIK_WAYPOINT(values[MA_WPT]);
        VikWaypoint *wpt = VIK_WAYPOINT(values[MA_WPT]);
-
 #ifdef WINDOWS
        ShellExecute(NULL, "open", wpt->image, NULL, NULL, SW_SHOWNORMAL);
 #else
 #ifdef WINDOWS
        ShellExecute(NULL, "open", wpt->image, NULL, NULL, SW_SHOWNORMAL);
 #else
+       VikTrwLayer *vtl = VIK_TRW_LAYER(values[MA_VTL]);
        GError *err = NULL;
        gchar *quoted_file = g_shell_quote ( wpt->image );
        gchar *cmd = g_strdup_printf ( "%s %s", a_vik_get_image_viewer(), quoted_file );
        GError *err = NULL;
        gchar *quoted_file = g_shell_quote ( wpt->image );
        gchar *cmd = g_strdup_printf ( "%s %s", a_vik_get_image_viewer(), quoted_file );