]> granicus.if.org Git - json-c/commitdiff
Issue #635: Fix "expression has no effect" warning in json_tokener.c by casting to...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Tue, 23 Jun 2020 02:51:46 +0000 (02:51 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Tue, 23 Jun 2020 02:51:46 +0000 (02:51 +0000)
json_tokener.c

index 82cb8d90357309009d707e022adfaa5f52f392c9..385557092745d57b2f2faf0680854e46a947e103 100644 (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))
                                {
                                        /*