13b4184b2e434953f411f20dd87104f99b550275 hiram Fri Oct 2 11:53:27 2015 -0700 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/hg/lib/rmskOut.c src/hg/lib/rmskOut.c index 52fcdb8..365b467 100644 --- src/hg/lib/rmskOut.c +++ src/hg/lib/rmskOut.c @@ -217,42 +217,37 @@ if (e == NULL) *retClass = *retFamily = s; else { *e++ = 0; *retClass = s; *retFamily = e; } } struct rmskOut *rmskOutReadNext(struct lineFile *lf) /* Read next record from repeat masker file. Return NULL at EOF. */ { char *words[32]; int wordCount; -char id; struct rmskOut *ret; char *class, *family; if ((wordCount = lineFileChop(lf, words)) == 0) return NULL; if (wordCount < 14 ) errAbort("Expecting at least 14 words line %d of %s", lf->lineIx, lf->fileName); -if (wordCount >= 15) - id = words[14][0]; -else - id = 0; AllocVar(ret); ret->swScore = lineFileNeedNum(lf, words, 0); ret->milliDiv = round(10.0*atof(words[1])); ret->milliDel = round(10.0*atof(words[2])); ret->milliIns = round(10.0*atof(words[3])); ret->genoName = cloneString(words[4]); ret->genoStart = lineFileNeedNum(lf, words, 5)-1; ret->genoEnd = lineFileNeedNum(lf, words, 6); ret->genoLeft = -negParenNum(lf, words[7]); if (sameString(words[8], "C")) ret->strand[0] = '-'; else if (sameString(words[8], "+")) ret->strand[0] = '+'; else errAbort("Unexpected strand char line %d of %s", lf->lineIx, lf->fileName);