On 06/10/2014 03:20 AM, arei.gonglei@huawei.com wrote: > From: Gonglei > > Signed-off-by: ChenLiang > Signed-off-by: Gonglei > --- > qobject/json-parser.c | 15 ++------------- > 1 file changed, 2 insertions(+), 13 deletions(-) Reviewed-by: Eric Blake > @@ -461,10 +459,8 @@ static QObject *parse_object(JSONParserContext *ctxt, va_list *ap) > goto out; > } > } > - token = NULL; > } else { > - token = parser_context_pop_token(ctxt); > - token = NULL; > + (void)parser_context_pop_token(ctxt); Does the compiler warn if you drop the cast-to-void? I tend to think of it as fluff that usually doesn't add anything. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org