Issue #635: Fix "expression has no effect" warning in json_tokener.c by casting to void.

This commit is contained in:
Eric Haszlakiewicz
2020-06-23 02:51:46 +00:00
parent 7a72805e34
commit 84e6032883

View File

@@ -646,7 +646,7 @@ struct json_object *json_tokener_parse_ex(struct json_tokener *tok, const char *
if (tok->st_pos >= 4)
break;
ADVANCE_CHAR(str, tok);
(void)ADVANCE_CHAR(str, tok);
if (!PEEK_CHAR(c, tok))
{
/*