From: Eric Haszlakiewicz Date: Tue, 23 Jun 2020 02:51:46 +0000 (+0000) Subject: Issue #635: Fix "expression has no effect" warning in json_tokener.c by casting to... X-Git-Tag: json-c-0.15-20200726~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84e6032883b507f16c877297da97927ea87811f1;p=thirdparty%2Fjson-c.git Issue #635: Fix "expression has no effect" warning in json_tokener.c by casting to void. --- diff --git a/json_tokener.c b/json_tokener.c index 82cb8d90..38555709 100644 --- a/json_tokener.c +++ b/json_tokener.c @@ -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)) { /*