1f92f7b70f957f9e57ef9a3e957ee91e5afa37bd
hiram
  Mon Nov 23 09:09:27 2015 -0800
fixup gcc warnings for -Wunused-but-set-variable refs #16121

diff --git src/utils/textHist2/textHist2.c src/utils/textHist2/textHist2.c
index 1da0d66..5f665eb 100644
--- src/utils/textHist2/textHist2.c
+++ src/utils/textHist2/textHist2.c
@@ -75,60 +75,59 @@
 psDrawBox(ps, x, y, width+1, height+1);
 }
 
 
 void psOutput(int *hist, char *psFile)
 /* Output histogram in postscript format. */
 {
 double labelSize = 72.0/2;
 double psInnerSize = psSize - labelSize;
 double tickSize = labelSize/4;
 double textSize = labelSize - tickSize;
 struct psGfx *ps = psOpen(psFile, psSize, psSize, psSize, psSize, margin);
 double val, maxVal = findMaxVal(hist);
 int x, y, both;
 double grayScale;
-double xPos, yPos, xMid;
+double xPos, yPos;
 double xBinPts = psInnerSize/xBins;
 double yBinPts = psInnerSize/yBins;
 
 grayScale = 1.0 / maxVal * postScale;
 for (y=0; y<yBins; ++y)
     {
     int yg = yBins-1-y;
     yPos = yg*yBinPts;
     for (x=0; x<xBins; ++x)
         {
 	xPos = x * xBinPts + labelSize;
 	both = y*xBins + x;
 	val = mightLog(hist[both]) * grayScale;
 	if (val > 1.0) val = 1.0;
 	if (val < 0.0) val = 0.0;
 	psSetGray(ps, 1.0 - val);
 	boxOut(ps, xPos, yPos, xBinPts, yBinPts);
 	}
     }
 
 /* Draw ticks and labels. */
 psSetGray(ps, 0);
 yPos = psInnerSize;
 for (x=labelStep; x<xBins; x += labelStep)
     {
     char buf[16];
     sprintf(buf, "%d", x*xBinSize+xMin);
     xPos = x * xBinPts + labelSize;
-    xMid = xPos;
     psDrawBox(ps, xPos, yPos, 1, tickSize);
     psTextDown(ps, xPos, yPos+tickSize+2, buf);
     }
 for (y=labelStep; y<yBins; y += labelStep)
     {
     char buf[16];
     int yg = yBins-y;
     sprintf(buf, "%d", y*yBinSize+yMin);
     yPos = yg*yBinPts;
     psDrawBox(ps, textSize, yPos, tickSize, 1);
     psTextAt(ps, 0, yPos, buf);
     }
 psClose(&ps);
 }