1d76bf881d3e18580739e44698a0d1a499c2f9f1 hiram Fri Oct 2 10:31:39 2015 -0700 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/lib/pslGenoShow.c src/lib/pslGenoShow.c index 2e3e46d..507a9e2 100644 --- src/lib/pslGenoShow.c +++ src/lib/pslGenoShow.c @@ -18,70 +18,62 @@ static void pslShowAlignmentStranded2(struct psl *psl, boolean isProt, char *qName, bioSeq *qSeq, int qStart, int qEnd, char *tName, bioSeq *tSeq, int tStart, int tEnd, int exnStarts[], int exnEnds[], int exnCnt, FILE *f) /* Show stamper gene and stamp elements alignment using genomic sequence. * The aligned exons' sequence of stamper gene are shown in colors as usual, but the * the unaligned exon's sequence of stamper gene are shown in red color. */ { boolean tIsRc = (psl->strand[1] == '-'); boolean qIsRc = (psl->strand[0] == '-'); int mulFactor = (isProt ? 3 : 1); DNA *dna = NULL; /* Mixed case version of genomic DNA. */ int qSize = qSeq->size; char *qLetters = cloneString(qSeq->dna); -int qbafStart, qbafEnd, tbafStart, tbafEnd; -int qcfmStart, qcfmEnd, tcfmStart, tcfmEnd; +int qbafStart, tbafStart; +int qcfmStart, tcfmStart; int lineWidth = isProt ? 60 : 50; tbafStart = tStart; -tbafEnd = tEnd; tcfmStart = tStart; -tcfmEnd = tEnd; qbafStart = qStart; -qbafEnd = qEnd; qcfmStart = qStart; -qcfmEnd = qEnd; /* Deal with minus strand. */ if (tIsRc) { int temp; reverseComplement(tSeq->dna, tSeq->size); tbafStart = tEnd; - tbafEnd = tStart; tcfmStart = tEnd; - tcfmEnd = tStart; temp = psl->tSize - tEnd; tEnd = psl->tSize - tStart; tStart = temp; } if (qIsRc) { int temp, j; reverseComplement(qSeq->dna, qSeq->size); reverseComplement(qLetters, qSeq->size); qcfmStart = qEnd; - qcfmEnd = qStart; qbafStart = qEnd; - qbafEnd = qStart; temp = psl->qSize - qEnd; qEnd = psl->qSize - qStart; qStart = temp; for(j = 0; j < exnCnt; j++) { temp = psl->qSize - exnStarts[j]; exnStarts[j] = psl->qSize - exnEnds[j]; exnEnds[j] = temp; } reverseInts(exnEnds, exnCnt); reverseInts(exnStarts, exnCnt); } dna = cloneString(tSeq->dna);