Question about syntax

Matthew Woehlke mw_triad@users.sourceforge.net
Mon Apr 9 17:47:00 GMT 2007


devel wrote:
> I see that GCC do not warning something like this:
> 
> {
> x++;
> 
> char var[10];
> int hello;
> 
> if ()
> {
> }
> ...
> 
> }
> 
> or similar.
> 
> Why GCC do not advise about this?

Try -Wdeclaration-after-statement?

-- 
Matthew
If you believe you received this e-mail in error, you are probably sadly 
mistaken, but if not, aren't you lucky?



More information about the Gcc-help mailing list