Index: trunk/ppBackground/src/ppBackgroundExit.c
===================================================================
--- trunk/ppBackground/src/ppBackgroundExit.c	(revision 28288)
+++ trunk/ppBackground/src/ppBackgroundExit.c	(revision 34089)
@@ -10,5 +10,14 @@
     }
 
-    psErrorCode errorCode = psErrorCodeLast(); // Error code
+    // 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 errorCode = psErrorCodeLast(); // Error code
+    int errorCode = psErrorCodeLast(); // Error code
+
     if (errorCode != PS_ERR_NONE) {
         pmFPAfileFreeSetStrict(false);
