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/rmskOut2.c src/hg/lib/rmskOut2.c index f7ec562..a6cb7dc 100644 --- src/hg/lib/rmskOut2.c +++ src/hg/lib/rmskOut2.c @@ -252,40 +252,38 @@ if (e == NULL) *retClass = *retFamily = s; else { *e++ = 0; *retClass = s; *retFamily = e; } } struct rmskOut2 *rmskOut2ReadNext(struct lineFile *lf) /* Read next record from repeat masker file. Return NULL at EOF. */ { char *words[32]; int wordCount; -char id; struct rmskOut2 *ret; char *class, *family; if ((wordCount = lineFileChop(lf, words)) == 0) return NULL; if (wordCount != 15 ) errAbort("Expecting 15 words - line %d of %s", lf->lineIx, lf->fileName); -id = words[14][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 = -negParenNum2(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);