From: Gonglei <arei.gong...@huawei.com> Pointer "token" returned by "parser_context_pop_token(ctxt)" is never used.
Signed-off-by: ChenLiang <chenlian...@huawei.com> Signed-off-by: Gonglei <arei.gong...@huawei.com> --- qobject/json-parser.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qobject/json-parser.c b/qobject/json-parser.c index e46c264..f28904c 100644 --- a/qobject/json-parser.c +++ b/qobject/json-parser.c @@ -463,8 +463,7 @@ static QObject *parse_object(JSONParserContext *ctxt, va_list *ap) } token = NULL; } else { - token = parser_context_pop_token(ctxt); - token = NULL; + (void)parser_context_pop_token(ctxt); } return QOBJECT(dict); @@ -542,8 +541,7 @@ static QObject *parse_array(JSONParserContext *ctxt, va_list *ap) token = NULL; } else { - token = parser_context_pop_token(ctxt); - token = NULL; + (void)parser_context_pop_token(ctxt); } return QOBJECT(list); -- 1.7.12.4