Index: trunk/ppBackground/configure.ac
===================================================================
--- trunk/ppBackground/configure.ac	(revision 31165)
+++ trunk/ppBackground/configure.ac	(revision 34089)
@@ -9,5 +9,5 @@
 AM_MAINTAINER_MODE
 
-IPP_STDCFLAGS
+IPP_STDLDFLAGS
 
 AC_LANG(C)
@@ -30,5 +30,5 @@
 dnl Set CFLAGS for build
 IPP_STDOPTS
-CFLAGS="${CFLAGS} -Wall -Werror"
+IPP_STDCFLAGS
 
 IPP_VERSION
Index: trunk/ppBackground/src/ppBackgroundExit.c
===================================================================
--- trunk/ppBackground/src/ppBackgroundExit.c	(revision 31165)
+++ 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);
