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/expRatioTracks.c src/hg/hgTracks/expRatioTracks.c index 9308763..0467e9f 100644 --- src/hg/hgTracks/expRatioTracks.c +++ src/hg/hgTracks/expRatioTracks.c @@ -1141,90 +1141,86 @@ makeRedGreenShades(hvg); if(tg->limitedVis == tvDense || tg->limitedVis == tvPack || tg->limitedVis == tvSquish) { score = score/10; return getColorForAffyExpssn(score, 262144/16); /* 262144 == 2^18 */ } else { return expressionColor(tg, item, hvg, 1.0, 3.0); } } Color expRatioColor(struct track *tg, void *item, struct hvGfx *hvg) /* Does the score->color conversion */ { -struct linkedFeatures *lf; struct linkedFeaturesSeries *lfs; if(!exprBedColorsMade) makeRedGreenShades(hvg); if(tg->visibility == tvDense) { lfs = item; if (trackDbSetting(tg->tdb, EXP_COLOR_DENSE)) /* scaled by 1000. Brighten up just a bit... */ return expressionScoreColor(tg, lfs->grayIx * 1100, hvg, tg->expScale, tg->expScale); else return MG_BLACK; } else { - lf = item; return expressionColor(tg, item, hvg, tg->expScale, tg->expScale); } } Color affyUclaNormColor(struct track *tg, void *item, struct hvGfx *hvg) /* Does the score->color conversion for affymetrix arrays using ratios, * if dense do an intensity color in blue based on score value otherwise do * red/green display from expScores */ { struct linkedFeatures *lf = item; if(!exprBedColorsMade) makeRedGreenShades(hvg); if(tg->customInt != 1) { return shadesOfSea[grayInRange(lf->score, 0, 1000)]; } else { return expressionColor(tg, item, hvg, 1.0, 3.0); } } /*For Lowe Lab arrays with M and A values*/ Color loweRatioColor(struct track *tg, void *item, struct hvGfx *hvg) /* Does the score->color conversion */ { -struct linkedFeatures *lf; struct linkedFeaturesSeries *lfs; if(!exprBedColorsMade) makeRedGreenShades(hvg); if(tg->visibility == tvDense) { lfs = item; if (trackDbSetting(tg->tdb, EXP_COLOR_DENSE)) /* scaled by 1000. Brighten up just a bit... */ return loweExpressionScoreColor(tg, lfs->grayIx * 1100, hvg, tg->expScale, tg->expScale); else return MG_BLACK; } else { - lf = item; return loweExpressionColor(tg, item, hvg, tg->expScale, tg->expScale); } } void fixLfs(struct track *tg) /* Little function called at the loadMultScoresBed and the ct one */ /* to polish the lfs up. */ { struct linkedFeatures *lf; struct linkedFeaturesSeries *lfs; for (lfs = tg->items; lfs != NULL; lfs = lfs->next) /* Set the beginning and end of each linkedFeaturesSeries. */ { lfs->start = BIGNUM; lfs->end = 0;