This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about syntax


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?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]