b3aedfa46a48ead09c1cdedf34b07b281ea1ae18 hiram Fri Oct 2 10:41:11 2015 -0700 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/jkOwnLib/ffSeedExtend.c src/jkOwnLib/ffSeedExtend.c index 98f5ee9..2c3f9f1 100644 --- src/jkOwnLib/ffSeedExtend.c +++ src/jkOwnLib/ffSeedExtend.c @@ -202,31 +202,31 @@ return ffList; } static void clumpToExactRange(struct gfClump *clump, bioSeq *qSeq, int tileSize, int frame, struct trans3 *t3, struct gfRange **pRangeList) /* Covert extend and merge hits in clump->hitList so that * you get a list of maximal segments with no gaps or mismatches. */ { struct gfSeqSource *target = clump->target; aaSeq *tSeq = target->seq; BIOPOL *qs, *ts, *qe, *te; struct gfHit *hit; int qStart = 0, tStart = 0, qEnd = 0, tEnd = 0, newQ = 0, newT = 0; boolean outOfIt = TRUE; /* Logically outside of a clump. */ struct gfRange *range; -BIOPOL *lastQs = NULL, *lastQe = NULL, *lastTs = NULL, *lastTe = NULL; +BIOPOL *lastQs = NULL, *lastQe = NULL, *lastTs = NULL; if (tSeq == NULL) internalErr(); /* The termination condition of this loop is a little complicated. * We want to output something either when the next hit can't be * merged into the previous, or at the end of the list. To avoid * duplicating the output code we're forced to complicate the loop * termination logic. Hence the check for hit == NULL to break * the loop is not until near the end of the loop. */ for (hit = clump->hitList; ; hit = hit->next) { if (hit != NULL) { newQ = hit->qStart; @@ -241,31 +241,31 @@ * all adjacent hits. */ if (hit == NULL || newQ != qEnd || newT != tEnd) { qs = qSeq->dna + qStart; ts = tSeq->dna + tStart; qe = qSeq->dna + qEnd; te = tSeq->dna + tEnd; extendExactRight(qSeq->size - qEnd, tSeq->size - tEnd, &qe, &te); extendExactLeft(qStart, tStart, &qs, &ts); if (qs != lastQs || ts != lastTs || qe != lastQe || qs != lastQs) { lastQs = qs; lastTs = ts; lastQe = qe; - lastTe = te; + // BIOPOL *lastTe = te; unnecessary AllocVar(range); range->qStart = qs - qSeq->dna; range->qEnd = qe - qSeq->dna; range->tName = cloneString(tSeq->name); range->tSeq = tSeq; range->tStart = ts - tSeq->dna; range->tEnd = te - tSeq->dna; range->hitCount = qe - qs; range->frame = frame; range->t3 = t3; slAddHead(pRangeList, range); } outOfIt = TRUE; } }