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/variation.c src/hg/hgTracks/variation.c
index bd0c496..ce989bc 100644
--- src/hg/hgTracks/variation.c
+++ src/hg/hgTracks/variation.c
@@ -1089,35 +1089,32 @@
 	return MG_BLACK;
 	break;
     }
 }
 
 Color snpColor(struct track *tg, void *item, struct hvGfx *hvg)
 /* Return color of snp track item. */
 {
 struct snp *el = item;
 enum   snpColorEnum thisSnpColor = snpColorBlack;
 char  *snpColorSource = cartUsualString(cart, snpColorSourceDataName[0], snpColorSourceDefault[0]);
 char  *validString = NULL;
 char  *funcString = NULL;
 int    snpValid = 0;
 int    snpFunc = 0;
-int    index1 = 0;
 int    index2 = 0;
 
-index1 =  stringArrayIx(snpColorSource, snpColorSourceStrings, snpColorSourceStringsSize);
-
 switch (stringArrayIx(snpColorSource, snpColorSourceStrings, snpColorSourceStringsSize))
     {
     case snpColorSourceSource:
 	index2 = stringArrayIx(el->source,snpSourceDataName,snpSourceDataNameSize);
 	thisSnpColor=(enum snpColorEnum)stringArrayIx(snpSourceCart[index2],snpColorLabel,snpColorLabelSize);
 	break;
     case snpColorSourceMolType:
 	index2 = stringArrayIx(el->molType,snpMolTypeDataName,snpMolTypeDataNameSize);
 	thisSnpColor=(enum snpColorEnum)stringArrayIx(snpMolTypeCart[index2],snpColorLabel,snpColorLabelSize);
 	break;
     case snpColorSourceClass:
 	index2 = stringArrayIx(el->class,snpClassDataName,snpClassDataNameSize);
 	thisSnpColor=(enum snpColorEnum)stringArrayIx(snpClassCart[index2],snpColorLabel,snpColorLabelSize);
 	break;
     case snpColorSourceValid: