[Vegan-commits] r2003 - pkg/vegan/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Nov 15 10:24:21 CET 2011


Author: jarioksa
Date: 2011-11-15 10:24:20 +0100 (Tue, 15 Nov 2011)
New Revision: 2003

Modified:
   pkg/vegan/src/nestedness.c
Log:
-pedantic warnings

Modified: pkg/vegan/src/nestedness.c
===================================================================
--- pkg/vegan/src/nestedness.c	2011-11-13 17:33:42 UTC (rev 2002)
+++ pkg/vegan/src/nestedness.c	2011-11-15 09:24:20 UTC (rev 2003)
@@ -281,7 +281,7 @@
 
 void swapcount(int *m, int *nr, int *nc, int *thin)
 {
-    int row[2], col[2], k, ij[4], changed, got,
+    int row[2], col[2], k, ij[4], changed, 
 	pm[4] = {1, -1, -1, 1} ;
     int sm[4], ev;
 
@@ -368,7 +368,7 @@
 int isDiagSimple(double *sm)
 {
     int i, sX;
-    int retval;
+    int retval = 0;
 
     /* sX: number of non-zero cells */
     for (i = 0, sX = 0; i < 4; i++)



More information about the Vegan-commits mailing list