--- a/APSCpp/APSCpp.c
+++ b/APSCpp/APSCpp.c
@@ -288,7 +288,7 @@
 */
 int ImageMap_toTIFF( ImageMap * p, char * name )
 {
-	int i, ok;
+       int i, ok = 0;
 
 // create tiff file
     TIFF * tp = TIFFOpen( name, "w" );
@@ -510,7 +510,7 @@
  */
   {
     
-	ArrayList * globalNaturalKeypoints = 0;
+//     ArrayList * globalNaturalKeypoints = 0;
 	int i;
 	if( pdi && stgfov >= 0 && hfov >= stgfov ){ 
 	// build remapping function at source scale