Skip to content

Commit

Permalink
CPreProcessor: put casts (void) where the return values can be ignored
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Oct 1, 2024
1 parent 2703aee commit f19dcad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parsers/cpreprocessor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ static int skipToEndOfString (bool ignoreBackslash)
else if (c == DOUBLE_QUOTE)
break;
else
vStringPutWithLimit (Cpp.charOrStringContents, c, 1024);
(void)vStringPutWithLimit (Cpp.charOrStringContents, c, 1024);
}
return STRING_SYMBOL; /* symbolic representation of string */
}
Expand Down Expand Up @@ -1478,18 +1478,18 @@ static int skipToEndOfChar (void)
if (count == 1 && strchr ("DHOB", toupper (c)) != NULL)
{
veraBase = c;
vStringPutWithLimit (Cpp.charOrStringContents, c, 10);
(void)vStringPutWithLimit (Cpp.charOrStringContents, c, 10);
}
else if (veraBase != '\0' && ! isalnum (c))
{
cppUngetc (c);
break;
}
else
vStringPutWithLimit (Cpp.charOrStringContents, c, 10);
(void)vStringPutWithLimit (Cpp.charOrStringContents, c, 10);
}
else
vStringPutWithLimit (Cpp.charOrStringContents, c, 10);
(void)vStringPutWithLimit (Cpp.charOrStringContents, c, 10);
}
return CHAR_SYMBOL; /* symbolic representation of character */
}
Expand Down

0 comments on commit f19dcad

Please sign in to comment.