[GRASS-SVN] r71531 - grass-addons/grass7/vector/v.centerpoint

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 5 09:56:44 PDT 2017


Author: mmetz
Date: 2017-10-05 09:56:44 -0700 (Thu, 05 Oct 2017)
New Revision: 71531

Modified:
   grass-addons/grass7/vector/v.centerpoint/areas.c
Log:
v.centerpoint: fix compiler warnings

Modified: grass-addons/grass7/vector/v.centerpoint/areas.c
===================================================================
--- grass-addons/grass7/vector/v.centerpoint/areas.c	2017-10-04 14:53:15 UTC (rev 71530)
+++ grass-addons/grass7/vector/v.centerpoint/areas.c	2017-10-05 16:56:44 UTC (rev 71531)
@@ -162,9 +162,10 @@
 		    continue;
 
 		for (i = 0; i < ICats->n_cats; i++) {
-		    if (ICats->field[i] == layer)
+		    if (ICats->field[i] == layer) {
 			Vect_cat_set(Cats, 1, ICats->cat[i]);
 			cat = ICats->cat[i];
+		    }
 		}
 	    }
 
@@ -425,7 +426,7 @@
 	struct line_pnts *CPoints;
 	double cx, cy, dx, dy;
 	double medx, medy;
-	double *wb, tot_w;
+	double *wb;
 	int nw, nw_alloc, wi;
 	double dist, distsum, dist2all, lastdist2all;
 	int j, iter, maxiter = 1000;



More information about the grass-commit mailing list