[GRASS-SVN] r59399 - grass-addons/grass7/raster/r.stream.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 27 04:28:08 PDT 2014


Author: martinl
Date: 2014-03-27 04:28:07 -0700 (Thu, 27 Mar 2014)
New Revision: 59399

Modified:
   grass-addons/grass7/raster/r.stream.distance/distance_calc.c
   grass-addons/grass7/raster/r.stream.distance/distance_init.c
Log:
r.stream.distance: avoid compiler warnings


Modified: grass-addons/grass7/raster/r.stream.distance/distance_calc.c
===================================================================
--- grass-addons/grass7/raster/r.stream.distance/distance_calc.c	2014-03-27 11:24:34 UTC (rev 59398)
+++ grass-addons/grass7/raster/r.stream.distance/distance_calc.c	2014-03-27 11:28:07 UTC (rev 59399)
@@ -486,7 +486,7 @@
     float target_elev = 0;
     CELL dirs_cell;
     FCELL distance_cell, elevation_cell, tmp_elevation_cell;
-    size_t elevation_data_size;
+    /* size_t elevation_data_size; */
     struct Cell_head window;
 
     Rast_get_window(&window);

Modified: grass-addons/grass7/raster/r.stream.distance/distance_init.c
===================================================================
--- grass-addons/grass7/raster/r.stream.distance/distance_init.c	2014-03-27 11:24:34 UTC (rev 59398)
+++ grass-addons/grass7/raster/r.stream.distance/distance_init.c	2014-03-27 11:28:07 UTC (rev 59399)
@@ -9,6 +9,8 @@
     int out_max = ncols + nrows;
     int outlets_num;
 
+    G_debug(3, "ram_find_outlets(): number_of_streams=%d", number_of_streams);
+
     G_message(_("Finding nodes..."));
     outlets = (OUTLET *) G_malloc((out_max) * sizeof(OUTLET));
 
@@ -71,6 +73,8 @@
     CELL streams_cell;
     CELL dirs_cell;
 
+    G_debug(3, "ram_find_outlets(): number_of_streams=%d", number_of_streams);
+
     G_message(_("Finding nodes..."));
     outlets = (OUTLET *) G_malloc((out_max) * sizeof(OUTLET));
 
@@ -126,7 +130,7 @@
 		      int outs)
 {
     int r, c, i;
-    size_t data_size;
+    /* size_t data_size; */
 
     data_size = Rast_cell_size(FCELL_TYPE);
 



More information about the grass-commit mailing list