Index: trunk/pswarp/configure.ac
===================================================================
--- trunk/pswarp/configure.ac	(revision 33090)
+++ trunk/pswarp/configure.ac	(revision 34089)
@@ -9,5 +9,5 @@
 AM_MAINTAINER_MODE
 
-IPP_STDCFLAGS
+IPP_STDLDFLAGS
 
 AC_LANG(C)
@@ -33,5 +33,6 @@
 dnl Set CFLAGS for build
 IPP_STDOPTS
-CFLAGS="${CFLAGS} -Wall -Werror"
+IPP_STDCFLAGS
+
 echo "PSWARP_CFLAGS: $PSWARP_CFLAGS"
 echo "PSWARP_LIBS: $PSWARP_LIBS"
Index: trunk/pswarp/src/pswarpArguments.c
===================================================================
--- trunk/pswarp/src/pswarpArguments.c	(revision 33090)
+++ trunk/pswarp/src/pswarpArguments.c	(revision 34089)
@@ -28,5 +28,4 @@
 pmConfig *pswarpArguments (int argc, char **argv) {
 
-    bool status;
     int N;
 
@@ -101,5 +100,5 @@
     array = psArrayAlloc(1);
     array->data[0] = psStringCopy(argv[2]);
-    status = psMetadataAddPtr(config->arguments, PS_LIST_TAIL, "SKYCELL", PS_DATA_ARRAY, "", array);
+    psMetadataAddPtr(config->arguments, PS_LIST_TAIL, "SKYCELL", PS_DATA_ARRAY, "", array);
     psFree(array);
 
Index: trunk/pswarp/src/pswarpExit.c
===================================================================
--- trunk/pswarp/src/pswarpExit.c	(revision 33090)
+++ trunk/pswarp/src/pswarpExit.c	(revision 34089)
@@ -20,5 +20,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);
Index: trunk/pswarp/src/pswarpTransformReadout.c
===================================================================
--- trunk/pswarp/src/pswarpTransformReadout.c	(revision 33090)
+++ trunk/pswarp/src/pswarpTransformReadout.c	(revision 34089)
@@ -51,8 +51,8 @@
     }
 
-    int nThreads = psMetadataLookupS32(&mdok, config->arguments, "NTHREADS"); // Number of threads
-    if (!mdok) {
-        nThreads = 0;
-    }
+    // XXX unused int nThreads = psMetadataLookupS32(&mdok, config->arguments, "NTHREADS"); // Number of threads
+    // XXX unused if (!mdok) {
+    // XXX unused     nThreads = 0;
+    // XXX unused }
     float poorFrac = psMetadataLookupF32(NULL, config->arguments, "POOR.FRAC"); ///< Flux fraction for "poor"
 
