Re: [PATCH] Handle also switch for -Wdangling-else

2016-05-05 Thread Marek Polacek
On Wed, May 04, 2016 at 09:54:29PM +0200, Jakub Jelinek wrote: > Hi! > > This patch let us warn about danling else even if there is a switch > without {}s around the body. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > > 2016-05-04 Jakub Jelinek

[PATCH] Handle also switch for -Wdangling-else

2016-05-04 Thread Jakub Jelinek
Hi! This patch let us warn about danling else even if there is a switch without {}s around the body. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2016-05-04 Jakub Jelinek * c-parser.c (c_parser_switch_statement): Add IF_P argument,