On Mon, 23 May 2011, Jakub Jelinek wrote:

> Hi!
> 
> This patch shuts up a warning about VLA bounds expression being unused.
> start_decl adds the (usually SAVE_EXPR) expression to statements to make
> sure it is evaluated, but if that happens in statement expression where
> unused value warnings are postponed until we know what is the return value,
> it will be warned on.  Fixed by casting it to void.
> 
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.6?
> 
> 2011-05-23  Jakub Jelinek  <ja...@redhat.com>
> 
>       PR c/49120
>       * c-decl.c (start_decl): Convert expr to void_type_node.
> 
>       * gcc.dg/pr49120.c: New test.

OK.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to