178b216b552ca7b47e0ccdc52c63f8c23839bff0 hiram Thu Oct 15 15:25:22 2015 -0700 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c index 4534db1..f38c40e 100644 --- src/hg/hgTrackUi/hgTrackUi.c +++ src/hg/hgTrackUi/hgTrackUi.c @@ -1644,57 +1644,53 @@ radioButton(varName, geneLabel, "all"); radioButton(varName, geneLabel, "none"); } void hg17KgUI(struct trackDb *tdb) /* Put up refGene-specific controls */ { hg17KgIdConfig(tdb); baseColorDrawOptDropDown(cart, tdb); } void omimLocationConfig(struct trackDb *tdb) /* Put up OMIM Location track controls */ { char varName[64]; -char *geneLabel; safef(varName, sizeof(varName), "%s.label", tdb->track); -geneLabel = cartUsualString(cart, varName, "OMIM ID"); printf("<BR><B>Include Entries of:</B> "); printf("<UL>\n"); printf("<LI>"); labelMakeCheckBox(tdb, "class1", "Phenotype map key 1: the disorder has been placed on the map based on its association with a gene, but the underlying defect is not known.", TRUE); printf("<LI>"); labelMakeCheckBox(tdb, "class2", "Phenotype map key 2: the disorder has been placed on the map by linkage; no mutation has been found.", TRUE); printf("<LI>"); labelMakeCheckBox(tdb, "class3", "Phenotype map key 3: the molecular basis for the disorder is known; a mutation has been found in the gene.", TRUE); printf("<LI>"); labelMakeCheckBox(tdb, "class4", "Phenotype map key 4: a contiguous gene deletion or duplication syndrome; multiple genes are deleted or duplicated causing the phenotype.", TRUE); // removed the "others" option for the time being //printf("<LI>"); //labelMakeCheckBox(tdb, "others", "Others: no associated OMIM phenotype map key info available.", TRUE); printf("</UL>"); } void omimGene2Config(struct trackDb *tdb) /* Put up OMIM Genes track controls */ { char varName[64]; -char *geneLabel; safef(varName, sizeof(varName), "%s.label", tdb->track); -geneLabel = cartUsualString(cart, varName, "OMIM ID"); printf("<BR><B>Include Entries of:</B> "); printf("<UL>\n"); printf("<LI>"); labelMakeCheckBox(tdb, "class1", "Phenotype map key 1: the disorder has been placed on the map based on its association with a gene, but the underlying defect is not known.", TRUE); printf("<LI>"); labelMakeCheckBox(tdb, "class2", "Phenotype map key 2: the disorder has been placed on the map by linkage; no mutation has been found.", TRUE); printf("<LI>"); labelMakeCheckBox(tdb, "class3", "Phenotype map key 3: the molecular basis for the disorder is known; a mutation has been found in the gene.", TRUE); printf("<LI>"); labelMakeCheckBox(tdb, "class4", "Phenotype map key 4: a contiguous gene deletion or duplication syndrome; multiple genes are deleted or duplicated causing the phenotype.", TRUE); printf("<LI>"); labelMakeCheckBox(tdb, "others", "Others: no associated OMIM phenotype map key info available.", TRUE); printf("</UL>"); } @@ -1972,57 +1968,56 @@ "<TR><TD>3</TD><TD>500</TD></TR>\n" "<TR><TD>2</TD><TD>333</TD></TR>\n" "<TR><TD>1</TD><TD>250</TD></TR>\n" "<TR><TD>0</TD><TD>200</TD></TR>\n" "</BLOCKQUOTE>\n" ); hTableEnd(); } void zooWiggleUi(struct trackDb *tdb ) /* put up UI for zoo track with one species on each line * and checkboxes to toggle each of them on/off*/ { char options[7][256]; -int thisHeightPer, thisLineGap; +int thisHeightPer; float thisMinYRange, thisMaxYRange; char *interpolate, *fill; char **row; int rowOffset; struct sample *sample; struct sqlResult *sr; char option[64]; struct sqlConnection *conn = hAllocConn(database); char newRow = 0; snprintf( &options[0][0], 256, "%s.heightPer", tdb->track ); snprintf( &options[1][0], 256, "%s.linear.interp", tdb->track ); snprintf( &options[3][0], 256, "%s.fill", tdb->track ); snprintf( &options[4][0], 256, "%s.min.cutoff", tdb->track ); snprintf( &options[5][0], 256, "%s.max.cutoff", tdb->track ); snprintf( &options[6][0], 256, "%s.interp.gap", tdb->track ); thisHeightPer = atoi(cartUsualString(cart, &options[0][0], "50")); interpolate = cartUsualString(cart, &options[1][0], "Linear Interpolation"); fill = cartUsualString(cart, &options[3][0], "1"); thisMinYRange = atof(cartUsualString(cart, &options[4][0], "0.0")); thisMaxYRange = atof(cartUsualString(cart, &options[5][0], "1000.0")); -thisLineGap = atoi(cartUsualString(cart, &options[6][0], "200")); printf("<p><b>Interpolation: </b> "); wiggleDropDown(&options[1][0], interpolate ); printf(" "); printf("<br><br>"); printf(" <b>Fill Blocks</b>: "); cgiMakeRadioButton(&options[3][0], "1", sameString(fill, "1")); printf(" on "); cgiMakeRadioButton(&options[3][0], "0", sameString(fill, "0")); printf(" off "); printf("<p><b>Track Height</b>: "); cgiMakeIntVar(&options[0][0], thisHeightPer, 5 );