On 06/10/2014 03:20 AM, [email protected] wrote:
> From: Gonglei <[email protected]>
> 
> Signed-off-by: ChenLiang <[email protected]>
> Signed-off-by: Gonglei <[email protected]>
> ---
>  qobject/json-parser.c | 15 ++-------------
>  1 file changed, 2 insertions(+), 13 deletions(-)

Reviewed-by: Eric Blake <[email protected]>

> @@ -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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to