diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-23 02:51:46 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-23 02:51:46 +0000 |
commit | 84e6032883b507f16c877297da97927ea87811f1 (patch) | |
tree | 2674cb26e3a332d7302baf2ab306af71623dfde5 | |
parent | 7a72805e344509170c1665522c4f82a96d050ea7 (diff) | |
download | json-c-84e6032883b507f16c877297da97927ea87811f1.tar.gz |
Issue #635: Fix "expression has no effect" warning in json_tokener.c by casting to void.
-rw-r--r-- | json_tokener.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/json_tokener.c b/json_tokener.c index 82cb8d9..3855570 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)) { /* |