From 84e6032883b507f16c877297da97927ea87811f1 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Tue, 23 Jun 2020 02:51:46 +0000 Subject: [PATCH] Issue #635: Fix "expression has no effect" warning in json_tokener.c by casting to void. --- json_tokener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { /* -- 2.47.2