[GRASS-SVN] r62470 - grass/trunk/raster/r.horizon
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 28 23:17:31 PDT 2014
Author: zarch
Date: 2014-10-28 23:17:31 -0700 (Tue, 28 Oct 2014)
New Revision: 62470
Modified:
grass/trunk/raster/r.horizon/main.c
Log:
r.horizon: Remove -Wunused-variable warnings
Modified: grass/trunk/raster/r.horizon/main.c
===================================================================
--- grass/trunk/raster/r.horizon/main.c 2014-10-29 03:36:05 UTC (rev 62469)
+++ grass/trunk/raster/r.horizon/main.c 2014-10-29 06:17:31 UTC (rev 62470)
@@ -1041,8 +1041,7 @@
int buffer_s, int buffer_n)
{
int i, j, l, k = 0;
- size_t numDigits = 3;
- size_t decimals, add;
+ size_t decimals;
int xindex, yindex;
double shadow_angle;
@@ -1055,7 +1054,6 @@
double delt_east, delt_nor;
double delt_dist;
- char *formatString;
char msg_buff[256];
int hor_row_start = buffer_s;
@@ -1068,8 +1066,7 @@
int hor_numcols = n - (buffer_e + buffer_w);
int arrayNumInt;
- int start_indx;
- double dfr_rad, start_rad, angle_deg;
+ double dfr_rad, angle_deg;
xindex = (int)((xcoord - xmin) / stepx);
yindex = (int)((ycoord - ymin) / stepy);
@@ -1133,14 +1130,9 @@
}
else {
dfr_rad = step * deg2rad;
- start_rad = start * deg2rad;
arrayNumInt = (int)((end - start) / fabs(step));
- start_indx = (int)(start / step);
}
- /* numDigits = (int)(log10(1. * arrayNumInt)) + 1;
- sprintf(formatString, "%%s_%%0%dd", numDigits); */
-
decimals = G_get_num_decimals(str_step);
for (k = 0; k < arrayNumInt; k++) {
More information about the grass-commit
mailing list