e685265dd1b666acaab2bc076c141c368fb4be66
hiram
  Thu Oct 15 11:36:17 2015 -0700
fixup gcc warnings for -Wunused-but-set-variable refs #16121

diff --git src/hg/hgTracks/bedGraph.c src/hg/hgTracks/bedGraph.c
index c704729..4d80383 100644
--- src/hg/hgTracks/bedGraph.c
+++ src/hg/hgTracks/bedGraph.c
@@ -133,55 +133,52 @@
 #if defined(DEBUG)
 snprintf(dbgMsg, DBGMSGSZ, "I haven't seen bedGraphFreeItems ever called ?");
 wigDebugPrint("bedGraphFreeItems");
 #endif
 }
 
 struct preDrawContainer *bedGraphLoadPreDraw(struct track *tg, int seqStart, int seqEnd, int width)
 /* Do bits that load the predraw buffer tg->preDrawContainer. */
 {
 /* Just need to do this once... */
 if (tg->preDrawContainer)
     return tg->preDrawContainer;
 
 struct bedGraphItem *wi;
 double pixelsPerBase = scaleForPixels(width);
-double basesPerPixel = 1.0;
 int i;				/* an integer loop counter	*/
-if (pixelsPerBase > 0.0)
-    basesPerPixel = 1.0 / pixelsPerBase;
 
 /* Allocate predraw and save it and related info in the track. */
 struct preDrawContainer *pre = tg->preDrawContainer = initPreDrawContainer(width);
 struct preDrawElement *preDraw = pre->preDraw;	/* to accumulate everything in prep for draw */
 int preDrawZero = pre->preDrawZero;		/* location in preDraw where screen starts */
 int preDrawSize = pre->preDrawSize;		/* size of preDraw array */
 
 /*	walk through all the data fill in the preDraw array	*/
 for (wi = tg->items; wi != NULL; wi = wi->next)
     {
     double dataValue = wi->dataValue;	/* the data value to graph */
 
     /*	Ready to draw, what do we know:
     *	the feature being processed:
     *	chrom coords:  [wi->start : wi->end)
     *	its data value: dataValue = wi->dataValue
     *
     *	The drawing window, in pixels:
     *	xOff = left margin, yOff = top margin, h = height of drawing window
     *	drawing window in chrom coords: seqStart, seqEnd
-    *	'basesPerPixel' is known, 'pixelsPerBase' is known
+    *	'pixelsPerBase' is known
     */
     /*	let's check end point screen coordinates.  If they are
      *	the same, then this entire data block lands on one pixel,
      *	It is OK if these end up + or -, we do want to
      *	keep track of pixels before and after the screen for
      *	later smoothing operations
      */
     int x1 = (wi->start - seqStart) * pixelsPerBase;
     int x2 = (wi->end - seqStart) * pixelsPerBase;
 
     if (x2 > x1)
 	{
 	for (i = x1; i <= x2; ++i)
 	    {
 	    int xCoord = preDrawZero + i;