Index: trunk/stac/src/stacRejection.c
===================================================================
--- trunk/stac/src/stacRejection.c	(revision 2670)
+++ trunk/stac/src/stacRejection.c	(revision 2751)
@@ -162,4 +162,5 @@
 #endif
 
+#ifdef TESTING
 		// Check gradient
 		float meanGrads = 0.0;
@@ -184,4 +185,8 @@
 		    meanGrads = 0;
 		}
+#else
+		float meanGrads = 10000.0;
+#endif
+
 		
 #ifdef TESTING
@@ -197,6 +202,6 @@
 			fprintf(crs, "%d %d --> %f %f %f\n", x, y, ((psImage*)(inputs->data[i]))->data.F32[y][x],
 				maskVal, stacGradient(inputs->data[i], x, y));
+#endif
 		    }
-#endif
 		} else {
 		    mask->data.U8[y][x] = 0;
