Index: branches/eam_branches/ipp-20120601/psphot/src/Makefile.am
===================================================================
--- branches/eam_branches/ipp-20120601/psphot/src/Makefile.am	(revision 34049)
+++ branches/eam_branches/ipp-20120601/psphot/src/Makefile.am	(revision 34051)
@@ -183,5 +183,4 @@
 	psphotSourcePlots.c	       \
 	psphotRadialPlot.c	       \
-	psphotKronMasked.c             \
 	psphotKronIterate.c            \
 	psphotRadialProfileWings.c     \
@@ -209,8 +208,9 @@
 	psphotSetNFrames.c
 
-# re-instate these
+# not currently used
 #	psphotIsophotal.c	       \
 #	psphotAnnuli.c		       \
 #	psphotKron.c		       \
+#	psphotKronMasked.c             \
 #
 
Index: branches/eam_branches/ipp-20120601/psphot/src/psphotCleanup.c
===================================================================
--- branches/eam_branches/ipp-20120601/psphot/src/psphotCleanup.c	(revision 34049)
+++ branches/eam_branches/ipp-20120601/psphot/src/psphotCleanup.c	(revision 34051)
@@ -29,5 +29,13 @@
 psExit psphotGetExitStatus (void) {
 
-    psErrorCode err = psErrorCodeLast ();
+    // gcc -Wswitch complains here if err is declared as type psErrorCode
+    // the collection of ps*ErrorCode values are enums defined separately for 
+    // each module (psphot, pswarp, etc).  the lowest type, psErrorCode is only the base set and does
+    // not include the possible psphot values
+
+    // for now, to get around this, we just use an int for the switch
+
+    // psErrorCode err = psErrorCodeLast ();
+    int err = psErrorCodeLast ();
     switch (err) {
       case PS_ERR_NONE:
Index: branches/eam_branches/ipp-20120601/psphot/src/psphotMakeResiduals.c
===================================================================
--- branches/eam_branches/ipp-20120601/psphot/src/psphotMakeResiduals.c	(revision 34049)
+++ branches/eam_branches/ipp-20120601/psphot/src/psphotMakeResiduals.c	(revision 34051)
@@ -177,8 +177,6 @@
 
                 mflux = 0;
-                bool offImage = false;
                 if (psImageInterpolate (&flux, &dflux, &mflux, ix, iy, interp) == PS_INTERPOLATE_STATUS_OFF) {
                     // This pixel is off the image
-                    offImage = true;
                     fmasks->data.PS_TYPE_VECTOR_MASK_DATA[i] = badMask;
                 } else {
Index: branches/eam_branches/ipp-20120601/psphot/src/psphotPetrosianStats.c
===================================================================
--- branches/eam_branches/ipp-20120601/psphot/src/psphotPetrosianStats.c	(revision 34049)
+++ branches/eam_branches/ipp-20120601/psphot/src/psphotPetrosianStats.c	(revision 34051)
@@ -46,5 +46,5 @@
 
     bool anyPetro = false;
-    bool manyPetro = false;
+    // bool manyPetro = false;  XXX not used
     bool above = true;
     float Asum = 0.0;
@@ -122,5 +122,5 @@
 	    }
 	    above = false;
-	    if (anyPetro) manyPetro = true;
+	    // if (anyPetro) manyPetro = true;
 	    anyPetro = true;
 	}
@@ -212,5 +212,5 @@
     source->extpars->petrosianR50    = R50;
     source->extpars->petrosianR90    = R90;
-    source->extpars->petrosianFill      = petApix / petArea;
+    source->extpars->petrosianFill   = petApix / petArea;
     
     // XXX add the errors
Index: branches/eam_branches/ipp-20120601/psphot/src/psphotReadoutCleanup.c
===================================================================
--- branches/eam_branches/ipp-20120601/psphot/src/psphotReadoutCleanup.c	(revision 34049)
+++ branches/eam_branches/ipp-20120601/psphot/src/psphotReadoutCleanup.c	(revision 34051)
@@ -7,5 +7,5 @@
 
     // remove internal pmFPAfiles, if created
-    if (psErrorCodeLast() == PSPHOT_ERR_DATA) {
+    if (psErrorCodeLast() == (psErrorCode) PSPHOT_ERR_DATA) {
         psErrorStackPrint(stderr, "Error in the psphot readout analysis");
         psErrorClear();
Index: branches/eam_branches/ipp-20120601/psphot/src/psphotSignificanceImage.c
===================================================================
--- branches/eam_branches/ipp-20120601/psphot/src/psphotSignificanceImage.c	(revision 34049)
+++ branches/eam_branches/ipp-20120601/psphot/src/psphotSignificanceImage.c	(revision 34051)
@@ -8,5 +8,4 @@
     float SIGMA_SMTH, NSIGMA_SMTH;
     bool status = false;
-    bool guess = false;
 
     // smooth the image and variance map
@@ -35,5 +34,4 @@
         SIGMA_SMTH  = 0.5*(fwhmMajor + fwhmMinor) / (2.0*sqrt(2.0*log(2.0)));
         NSIGMA_SMTH = psMetadataLookupF32 (&status, recipe, "PEAKS_SMOOTH_NSIGMA");
-        guess = false;
     } else {
         // if we do not know the FWHM, use the guess smoothing kernel supplied.
@@ -43,5 +41,4 @@
         NSIGMA_SMTH = psMetadataLookupF32 (&status, recipe, "PEAKS_SMOOTH_NSIGMA");
         PS_ASSERT (status, NULL);
-        guess = true;
     }
     // record the actual smoothing sigma
