Index: trunk/Ohana/src/libfits/Makefile
===================================================================
--- trunk/Ohana/src/libfits/Makefile	(revision 33648)
+++ trunk/Ohana/src/libfits/Makefile	(revision 34088)
@@ -16,5 +16,5 @@
 
 # programs may add their own internal requirements here
-FULL_CFLAGS   = $(BASE_CFLAGS) -fPIC -Wall -Werror
+FULL_CFLAGS   = $(BASE_CFLAGS) -fPIC
 FULL_CPPFLAGS = $(BASE_CPPFLAGS) -I$(EXT)
 FULL_LDFLAGS  = $(BASE_LDFLAGS) -lohana
Index: trunk/Ohana/src/libfits/extern/fits_hdecompress.c
===================================================================
--- trunk/Ohana/src/libfits/extern/fits_hdecompress.c	(revision 33648)
+++ trunk/Ohana/src/libfits/extern/fits_hdecompress.c	(revision 34088)
@@ -1048,5 +1048,5 @@
 {
 LONGLONG sumall;
-int nel, stat;
+int stat;
 unsigned char nbitplanes[3];
 char tmagic[2];
@@ -1071,5 +1071,5 @@
 	*scale=readint(infile);				/* scale factor for digitization	*/
 	
-	nel = (*nx) * (*ny);
+	// nel = (*nx) * (*ny);
 
 	/* sum of all pixels	*/
@@ -1095,5 +1095,5 @@
 */
 {
-int nel, stat;
+int stat;
 LONGLONG sumall;
 unsigned char nbitplanes[3];
@@ -1119,5 +1119,5 @@
 	*scale=readint(infile);				/* scale factor for digitization	*/
 	
-	nel = (*nx) * (*ny);
+	// nel = (*nx) * (*ny);
 
 	/* sum of all pixels	*/
Index: trunk/Ohana/src/libfits/extern/ricecomp.c
===================================================================
--- trunk/Ohana/src/libfits/extern/ricecomp.c	(revision 33648)
+++ trunk/Ohana/src/libfits/extern/ricecomp.c	(revision 34088)
@@ -59,5 +59,5 @@
 {
 Buffer bufmem, *buffer = &bufmem;
-int bsize, i, j, thisblock;
+int i, j, thisblock;
 int lastpix, nextpix, pdiff;
 int v, fs, fsmask, top, fsmax, fsbits, bbits;
@@ -73,5 +73,5 @@
      * compression of short & byte images.
      */
-    bsize = 4;
+// int bsize = 4;
 
 /*    nblock = 32; now an input parameter*/
@@ -277,5 +277,5 @@
 {
 Buffer bufmem, *buffer = &bufmem;
-int bsize, i, j, thisblock;
+int i, j, thisblock;
 
 /* 
@@ -299,5 +299,5 @@
      * compression of short & byte images.
      */
-    bsize = 2;
+// bsize = 2;
 
 /*    nblock = 32; now an input parameter */
@@ -501,5 +501,5 @@
 {
 Buffer bufmem, *buffer = &bufmem;
-int bsize, i, j, thisblock;
+int i, j, thisblock;
 
 /* 
@@ -523,5 +523,5 @@
      * compression of short & byte images.
      */
-    bsize = 1;
+    // bsize = 1;
 
 /*    nblock = 32; now an input parameter */
@@ -826,5 +826,5 @@
 	     int nblock)		/* coding block size		*/
 {
-int bsize, i, k, imax;
+int i, k, imax;
 int nbits, nzero, fs;
 unsigned char *cend, bytevalue;
@@ -839,5 +839,5 @@
      * compression of short & byte images.
      */
-    bsize = 4;
+// bsize = 4;
 
 /*    nblock = 32; now an input parameter */
@@ -1014,5 +1014,5 @@
 {
 int i, imax;
-int bsize, k;
+int k;
 int nbits, nzero, fs;
 unsigned char *cend, bytevalue;
@@ -1028,5 +1028,5 @@
      */
 
-    bsize = 2;
+// bsize = 2;
     
 /*    nblock = 32; now an input parameter */
@@ -1200,5 +1200,5 @@
 {
 int i, imax;
-int bsize, k;
+int k;
 int nbits, nzero, fs;
 unsigned char *cend;
@@ -1214,5 +1214,5 @@
      */
 
-    bsize = 1;
+// bsize = 1;
     
 /*    nblock = 32; now an input parameter */
Index: trunk/Ohana/src/libfits/matrix/F_compress_M.c
===================================================================
--- trunk/Ohana/src/libfits/matrix/F_compress_M.c	(revision 33648)
+++ trunk/Ohana/src/libfits/matrix/F_compress_M.c	(revision 34088)
@@ -45,5 +45,5 @@
   float zscale, zzero;
 
-  int zdata_pixsize, odata_pixsize, idata_pixsize;
+  int zdata_pixsize, odata_pixsize;
 
   int *ztile = NULL;
@@ -236,6 +236,6 @@
   zdata_pixsize = gfits_vartable_heap_pixsize (zdef.format);
 
-  // size of a pixel in the final image
-  idata_pixsize = abs(header[0].bitpix) / 8;
+  // size of a pixel in the final image (not needed)
+  // idata_pixsize = abs(header[0].bitpix) / 8;
 
   // size of a pixel in the output from the decompression routine
@@ -480,9 +480,9 @@
 int gfits_compressed_is_primary (Header *header) {
 
-    int has_ztension, has_zimage;
-    int ztension, zimage;
-
-    has_zimage   = gfits_scan_alt (header, "ZIMAGE",   "%t", 1, &zimage);
-    has_ztension = gfits_scan_alt (header, "ZTENSION", "%t", 1, &ztension);
+  int zimage = FALSE;
+  // int ztension = FALSE;
+
+    int has_zimage   = gfits_scan_alt (header, "ZIMAGE",   "%t", 1, &zimage);
+    // int has_ztension = gfits_scan_alt (header, "ZTENSION", "%t", 1, &ztension);
 
     if (has_zimage && zimage) return (TRUE);
Index: trunk/Ohana/src/libfits/table/F_copy_T.c
===================================================================
--- trunk/Ohana/src/libfits/table/F_copy_T.c	(revision 33648)
+++ trunk/Ohana/src/libfits/table/F_copy_T.c	(revision 34088)
@@ -17,9 +17,9 @@
 int gfits_copy_vtable (VTable *in, VTable *out) {
 
-  off_t i, Nx, Ny, Nrows;
+  off_t i;
 
   /* find buffer size */
-  Nx = in[0].header[0].Naxis[0];
-  Ny = in[0].header[0].Naxis[1];
+  off_t Nx = in[0].header[0].Naxis[0];
+  // off_t Ny = in[0].header[0].Naxis[1];
 
   // validate these two?
@@ -32,5 +32,5 @@
   out[0].Nrow     = in[0].Nrow;
 
-  Nrows = out[0].Nrow;
+  off_t Nrows = out[0].Nrow;
 
   ALLOCATE (out[0].row, off_t, MAX (Nrows, 1));
