Index: trunk/Ohana/src/opihi/cmd.astro/flux.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/flux.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/flux.c	(revision 39457)
@@ -1,8 +1,8 @@
 # include "astro.h"
+# include <signal.h>
 
 int flux (int argc, char **argv) {
   
   int i, j, k, xmin, ymin, xmax, ymax;
-  void *oldsignal;
   double ax, ay, s, S, flux;
   double bx[5], by[5], x[5], y[5], bb[5];
@@ -55,6 +55,6 @@
    we have to add up the angles for concave contours */
   flux = 0;
-  oldsignal = signal (SIGINT, handle_interrupt);
-  interrupt = FALSE;
+
+  struct sigaction *old_sigaction = SetInterrupt();
   for (j = ymin; (j < ymax) && !interrupt; j++) {
     V = (float *)(buf[0].matrix.buffer) + j*buf[0].matrix.Naxis[0] + xmin; 
@@ -72,5 +72,5 @@
     }
   }
-  signal (SIGINT, oldsignal);
+  ClearInterrupt (old_sigaction);
 
   gprint (GP_LOG, "flux: %f\n", flux);
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-fgauss.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-fgauss.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-fgauss.c	(revision 39457)
@@ -41,4 +41,5 @@
 /* real 2D gaussian -- x, y, sx, sy, sxy, I, sky */
 opihi_flt fgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px, py;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-pgauss-psf.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-pgauss-psf.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-pgauss-psf.c	(revision 39457)
@@ -39,4 +39,5 @@
 /* pseudo 2D gaussian -- x, y, (sx), (sy), (sxy), I, sky */
 opihi_flt pgauss_psfTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px, py;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-pgauss.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-pgauss.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-pgauss.c	(revision 39457)
@@ -41,4 +41,5 @@
 /* pseudo 2D gaussian -- x, y, sx, sy, sxy, I, sky */
 opihi_flt pgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px, py;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-qfgauss.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-qfgauss.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-qfgauss.c	(revision 39457)
@@ -45,4 +45,5 @@
 /* one component, two slopes: (1 + z^M + z^N)^(-1) -- x, y, sx, sy, sxy, I, sky */
 opihi_flt qfgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px, py;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-qgauss-psf.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-qgauss-psf.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-qgauss-psf.c	(revision 39457)
@@ -42,4 +42,5 @@
 /* one component, two slopes: (1 + z^M + z^N)^(-1) -- x, y, sx, sy, sxy, I, sky, sr */
 opihi_flt qgauss_psfTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px, py;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-qgauss.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-qgauss.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-qgauss.c	(revision 39457)
@@ -45,4 +45,5 @@
 /* one component, two slopes: (1 + z^M + z^N)^(-1) -- x, y, sx, sy, sxy, I, sky, sr */
 opihi_flt qgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px, py;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-qrgauss.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-qrgauss.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-qrgauss.c	(revision 39457)
@@ -45,4 +45,5 @@
 
 opihi_flt qrgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px, py;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-rgauss.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-rgauss.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-rgauss.c	(revision 39457)
@@ -37,4 +37,5 @@
 /* two components: (1 + z_1 + 0.5*z_1^2 + z_2^N)^(-1) -- x, y, sx1, sy1, sxy1, I, sky, sx2, sy2, sxy2 */
 opihi_flt rgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px1, py1, px2, py2;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-serbulge.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-serbulge.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-serbulge.c	(revision 39457)
@@ -42,4 +42,5 @@
 /* exp (-b (r/r_e)^(1/n)) + pgauss (r) */
 opihi_flt serbulgeTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px1, px2, py1, py2;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-sersic.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-sersic.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-sersic.c	(revision 39457)
@@ -34,4 +34,5 @@
 /* exp (-b (r/r_e)^(1/n)) */
 opihi_flt sersicTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px, py;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-sgauss-psf.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-sgauss-psf.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-sgauss-psf.c	(revision 39457)
@@ -44,4 +44,5 @@
 /* two components: (1 + z_1 + z_2^N)^(-1) -- x, y, sx1, sy1, sxy1, I, sky, sx2, sy2, sxy2 */
 opihi_flt sgauss_psfTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px1, py1, px2, py2;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-sgauss.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-sgauss.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-sgauss.c	(revision 39457)
@@ -53,4 +53,5 @@
 /* two components: (1 + z_1 + z_2^N)^(-1) -- x, y, sx1, sy1, sxy1, I, sky, sx2, sy2, sxy2 */
 opihi_flt sgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px1, py1, px2, py2;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-tgauss.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-tgauss.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-tgauss.c	(revision 39457)
@@ -32,4 +32,5 @@
 /* two components: (1 + z_1^M + z_2^N)^(-1) -- x, y, sx1, sy1, sxy1, I, sky, sx2, sy2, sxy2 */
 opihi_flt tgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px1, py1, px2, py2;
Index: trunk/Ohana/src/opihi/cmd.astro/imfit-vgauss.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit-vgauss.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit-vgauss.c	(revision 39457)
@@ -27,4 +27,5 @@
 /* pseudo 2D gaussian with opihi_flting 2nd and 3rd order terms -- x, y, sx, sy, sxy, I, sky, f1, f2 */
 opihi_flt vgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) {
+  OHANA_UNUSED_PARAM(Npar);
 
   opihi_flt X, Y, px, py;
Index: trunk/Ohana/src/opihi/cmd.astro/spexseq.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/spexseq.c	(revision 39333)
+++ trunk/Ohana/src/opihi/cmd.astro/spexseq.c	(revision 39457)
@@ -43,4 +43,6 @@
 
 void get_sequence (Object *object, int Nobject, int idx1, float Dmax, float f1, float f2, int pin1, int pin2) {
+  OHANA_UNUSED_PARAM(pin1);
+  OHANA_UNUSED_PARAM(pin2);
 
   int i, j, N;
