d64ef3a16ad7c8648a09eb4401c3c92a65b085aa hiram Wed Nov 25 11:40:18 2015 -0800 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/hg/fqToQac/fqToQac.c src/hg/fqToQac/fqToQac.c index fece771..e73a000 100644 --- src/hg/fqToQac/fqToQac.c +++ src/hg/fqToQac/fqToQac.c @@ -41,46 +41,46 @@ "uncompressed with qacToQa."); } void fqToQa(struct lineFile *in, char *outDir) /* fqToQa - convert from fq format with one big file to * format with one file per clone. */ { FILE *out = NULL; char ucscName[128]; char path[512]; static char lastPath[512]; char *gsName; int outFileCount = 0; struct hash *uniqClone = newHash(16); struct hash *uniqFrag = newHash(19); -boolean ignore = FALSE; +// boolean ignore = FALSE; unused struct qaSeq qa; makeDir(outDir); errLog = mustOpen("fqToQa.err", "w"); pushWarnHandler(warnHandler); printf("Converting %s", in->fileName); fflush(stdout); while (qaFastReadNext(in, &qa.qa, &qa.size, &gsName)) { gsToUcsc(gsName, ucscName); qa.name = ucscName; if (hashLookup(uniqFrag, ucscName)) { - ignore = TRUE; +// ignore = TRUE; unused warn("Duplicate %s in %s, ignoring all but first", ucscName, in->fileName); continue; } else { hashAdd(uniqFrag, ucscName, NULL); } faRecNameToQacFileName(outDir, ucscName, path); if (!sameString(path, lastPath)) { strcpy(lastPath, path); carefulClose(&out); if (hashLookup(uniqClone, path)) {