1f92f7b70f957f9e57ef9a3e957ee91e5afa37bd hiram Mon Nov 23 09:09:27 2015 -0800 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/utils/faTrimRead/faTrimRead.c src/utils/faTrimRead/faTrimRead.c index f6fb35a..9f46c77 100644 --- src/utils/faTrimRead/faTrimRead.c +++ src/utils/faTrimRead/faTrimRead.c @@ -108,44 +108,44 @@ { char lineBuf[1024]; int lineSize; char *words[1]; off_t offset = ftello(f); char *name = defaultName; if (name == NULL) name = ""; if (retCommentLine != NULL) *retCommentLine = NULL; /* Skip first lines until it starts with '>' */ for (;;) { - int ret = 0; if(fgets(lineBuf, sizeof(lineBuf), f) == NULL) { if (ferror(f)) errnoAbort("read of fasta file failed"); return FALSE; } lineSize = strlen(lineBuf); if (lineBuf[0] == '>') { if (retCommentLine != NULL) *retCommentLine = cloneString(lineBuf); offset = ftello(f); - ret = chopByWhite(lineBuf, words, ArraySize(words)); + // ignore return from chopByWhite() but need side-effect + (void) chopByWhite(lineBuf, words, ArraySize(words)); name = words[0]+1; break; } else if (!mustStartWithComment) { if (fseeko(f, offset, SEEK_SET) < 0) errnoAbort("fseek on fasta file failed"); break; } else offset += lineSize; } /* Allocate qual array and fill it up from file. */ /* read in qual scores. */ for (;;)