Skip to content
Permalink
Browse files

Fixes compiler warnings (gcc7, Linux)

  • Loading branch information...
cryptogenomicon committed Feb 22, 2018
1 parent 6c5f90e commit 58137022a657ac673329fcfbeec8bb8e7c740090
Showing with 5 additions and 5 deletions.
  1. +5 −5 esl_fileparser.c
@@ -274,8 +274,8 @@ esl_fileparser_NextLine(ESL_FILEPARSER *efp)

while ((status = nextline(efp)) == eslOK)
{
while (efp->s != '\0' && isspace(*(efp->s))) efp->s++;
if (*efp->s != '\0' && *efp->s != efp->commentchar) break;
while (*(efp->s) != '\0' && isspace(*(efp->s))) efp->s++;
if (*(efp->s) != '\0' && *efp->s != efp->commentchar) break;
}
if (status == eslEOF) return status;
if (status != eslOK) ESL_FAIL(status, efp->errbuf, "nextline() failed");
@@ -355,9 +355,9 @@ esl_fileparser_NextLinePeeked(ESL_FILEPARSER *efp, char *prefix, int plen)
memcpy(efp->buf, prefix, plen);
efp->s = efp->buf;

while (efp->s != '\0' && isspace(*(efp->s))) efp->s++;
if (*efp->s != '\0' && *efp->s != efp->commentchar) return eslOK;
else return esl_fileparser_NextLine(efp);
while (*(efp->s) != '\0' && isspace(*(efp->s))) efp->s++;
if (*(efp->s) != '\0' && *efp->s != efp->commentchar) return eslOK;
else return esl_fileparser_NextLine(efp);

ERROR:
return status;

0 comments on commit 5813702

Please sign in to comment.
You can’t perform that action at this time.