Index: trunk/Ohana/src/relastro/src/CoordOps.c
===================================================================
--- trunk/Ohana/src/relastro/src/CoordOps.c	(revision 33963)
+++ trunk/Ohana/src/relastro/src/CoordOps.c	(revision 34088)
@@ -11,7 +11,7 @@
 
   off_t N;
-  Image *images;
 
-  images = getimages (&N, NULL);
+  // Images *images = getimages (&N, NULL); return value ignored
+  getimages (&N, NULL);
 
   NoldCoords = N;
Index: trunk/Ohana/src/relastro/src/ImageOps.c
===================================================================
--- trunk/Ohana/src/relastro/src/ImageOps.c	(revision 33963)
+++ trunk/Ohana/src/relastro/src/ImageOps.c	(revision 34088)
@@ -426,5 +426,5 @@
     XY_to_LM (&Rx, &Dx, dLsig, 0.0, coords);
     dP0 = 3600.0 * hypot(Rx - Ro, Dx - Do); // convert to arcsec
-    XY_to_LM (&Rx, &Dx, 0.0, dLsig, coords);
+    XY_to_LM (&Rx, &Dx, 0.0, dMsig, coords);
     dP1 = 3600.0 * hypot(Rx - Ro, Dx - Do); // convert to arcsec
     dPosSys = 0.5 * (dP0 + dP1);
Index: trunk/Ohana/src/relastro/src/StarMaps.c
===================================================================
--- trunk/Ohana/src/relastro/src/StarMaps.c	(revision 33963)
+++ trunk/Ohana/src/relastro/src/StarMaps.c	(revision 34088)
@@ -57,5 +57,4 @@
 int updateStarMaps(Catalog *catalog) {
 
-  Image *images;
   off_t i, N, Nimages;
   int xbin, ybin;
@@ -64,5 +63,6 @@
   gettimeofday (&start, (void *) NULL);
 
-  images = getimages(&Nimages, NULL);
+  // Images *images = getimages(&Nimages, NULL); return value ignored
+  getimages(&Nimages, NULL);
 
   for (i = 0; i < catalog[0].Nmeasure; i++) {
Index: trunk/Ohana/src/relastro/src/relastro_merge_source.c
===================================================================
--- trunk/Ohana/src/relastro/src/relastro_merge_source.c	(revision 33963)
+++ trunk/Ohana/src/relastro/src/relastro_merge_source.c	(revision 34088)
@@ -18,5 +18,5 @@
   dvo_catalog_init (&catalog_dst, TRUE);
   SkyRegion *region_src = NULL;
-  SkyRegion *region_dst = NULL;
+  // SkyRegion *region_dst = NULL;
 
   // load data from each region file, only use bright stars
@@ -26,7 +26,8 @@
       region_src = &sky[0].regions[i];
     }
+    // currently, we only accept dst == src...
     if (sky[0].regions[i].index == CAT_ID_DST) {
       catalog_dst.filename = sky[0].filename[i];
-      region_dst = &sky[0].regions[i];
+      // region_dst = &sky[0].regions[i];
     }
   }    
@@ -91,6 +92,4 @@
 
     // repoint the src measures at this object
-    Measure *measures_src;
-    ALLOCATE (measures_src, Measure, catalog_src.average[index_src].Nmeasure);
     m = catalog_src.average[index_src].measureOffset;
     for (i = 0; i < catalog_src.average[index_src].Nmeasure; i++, m++) {
Index: trunk/Ohana/src/relastro/src/resort_catalog.c
===================================================================
--- trunk/Ohana/src/relastro/src/resort_catalog.c	(revision 33963)
+++ trunk/Ohana/src/relastro/src/resort_catalog.c	(revision 34088)
@@ -112,5 +112,5 @@
   int NmeasureTotal = 0;
   int measureOffsetOK = TRUE;
-  for (i = 0; i < catalog[0].Naverage; i++) {
+  for (i = 0; i < Naverage; i++) {
     NmeasureTotal += catalog[0].average[i].Nmeasure;
     if (VERBOSE && !(NmeasureTotal <= catalog[0].Nmeasure)) {
Index: trunk/Ohana/src/relastro/src/select_images.c
===================================================================
--- trunk/Ohana/src/relastro/src/select_images.c	(revision 33963)
+++ trunk/Ohana/src/relastro/src/select_images.c	(revision 34088)
@@ -292,5 +292,4 @@
 
   double theta1, theta2;
-  double Theta1, Theta2;
 
   theta1 = opening_angle (x1[0], y1[0], x2[0], y2[0], x1[1], y1[1]); 
@@ -305,6 +304,4 @@
   }
 
-  Theta1 = theta1;
-  Theta2 = theta2;
   theta1 = opening_angle (x2[0], y2[0], x1[1], y1[1], x2[1], y2[1]); 
   theta2 = opening_angle (x2[0], y2[0], x1[1], y1[1], x1[0], y1[0]); 
Index: trunk/Ohana/src/relastro/src/testparallax.c
===================================================================
--- trunk/Ohana/src/relastro/src/testparallax.c	(revision 33963)
+++ trunk/Ohana/src/relastro/src/testparallax.c	(revision 34088)
@@ -10,5 +10,5 @@
   double R[NPTS], D[NPTS], Time[NPTS], JD[NPTS];
   double X[NPTS], Y[NPTS], dX[NPTS], dY[NPTS], pX[NPTS], pY[NPTS];
-  double Tref[NPTS], Tjyrs[NPTS], TrefS, TjyrsS, TrefMean, TjyrsMean, Ro, Do;
+  double Tref[NPTS], Tjyrs[NPTS], TrefS, TjyrsS, TrefMean, Ro, Do;
   Coords coords;
   PMFit fitPAR;
@@ -82,5 +82,5 @@
   }
   TrefMean = TrefS / Npts;
-  TjyrsMean = TjyrsS / Npts;
+  // double TjyrsMean = TjyrsS / Npts;
 
   for (i = 0; i < Npts; i++) {
