ff9313091f342ffe62a124427b5c9d6a516faaea hiram Thu Oct 15 15:03:07 2015 -0700 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/hg/hgc/expClick.c src/hg/hgc/expClick.c index aa69e60..5aa3602 100644 --- src/hg/hgc/expClick.c +++ src/hg/hgc/expClick.c @@ -186,34 +186,33 @@ printf("<td height=%d width=%d bgcolor=\"#%.2X%.2X%.2X\"> </td>\n", square, square, rgb.r, rgb.g, rgb.b); } printf("</tr>\n"); } static void msBedPrintTable(struct bed *bedList, struct hash *erHash, char *itemName, char *expName, float minScore, float maxScore, float stepSize, int base, void(*printHeader)(struct bed *bedList, struct hash *erHash, char *item), void(*printRow)(struct bed *bedList,struct hash *erHash, int expIndex, char *expName, float maxScore, enum expColorType colorScheme), void(*printKey)(float minVal, float maxVal, float size, int base, struct rgbColor(*getColor)(float val, float max, enum expColorType colorScheme), enum expColorType colorScheme), struct rgbColor(*getColor)(float val, float max, enum expColorType colorScheme), enum expColorType colorScheme) /* prints out a table from the data present in the bedList */ { -int i,featureCount=0; +int i; if(bedList == NULL) errAbort("hgc::msBedPrintTable() - bedList is NULL"); -featureCount = slCount(bedList); /* time to write out some html, first the table and header */ if(printKey != NULL) printKey(minScore, maxScore, stepSize, base, getColor, colorScheme); printf("<p>\n"); printf("<basefont size=-1>\n"); printf("<table bgcolor=\"#000000\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\"><tr><td>"); printf("<table bgcolor=\"#fffee8\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">"); printHeader(bedList, erHash, itemName); for(i=0; i<bedList->expCount; i++) { printRow(bedList, erHash, i, expName, maxScore, colorScheme); } printf("</table>"); printf("</td></tr></table>"); printf("</basefont>");