8a0742ceadb86d048c6db1bcb113b1f08b0bd2bf hiram Fri Oct 2 12:39:07 2015 -0700 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/hg/pslReps/pslReps.c src/hg/pslReps/pslReps.c index be112e8..a98dd24 100644 --- src/hg/pslReps/pslReps.c +++ src/hg/pslReps/pslReps.c @@ -309,41 +309,38 @@ for (i=0; i<packetCount; ++i) fprintf(repFile, "%d,", packetVal[i]); fprintf(repFile, "\n"); freeMem(packetSize); freeMem(packetVal); } freeMem(repTrack); freeMem(scoreTrack); } void processBestSingle(char *acc, struct psl *pslList, FILE *bestFile, FILE *repFile) /* Find single best psl in list. */ { -struct psl *bestPsl = NULL, *psl; +struct psl *psl; int bestScore = 0, score, threshold; for (psl = pslList; psl != NULL; psl = psl->next) { score = pslScore(psl); if (score > bestScore) - { bestScore = score; - bestPsl = psl; - } } threshold = round((1.0 - nearTop)*bestScore); for (psl = pslList; psl != NULL; psl = psl->next) { if (pslScore(psl) >= threshold && passFilters(psl, NULL)) pslTabOut(psl, bestFile); } } void doOneAcc(char *acc, struct psl *pslList, FILE *bestFile, FILE *repFile) /* Process alignments of one piece of mRNA. */ { if (singleHit) processBestSingle(acc, pslList, bestFile, repFile); else