This is the mail archive of the gcc@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]

Re: Non-constant expression allowed to dimension array declarations


In article <41FBBB1B17AFD4119ECE000347088836F5A917@wbnsmail.gtl.com> you write:

> I was amazed to see that gcc allows the following. [...]

I am amazed that people fail to read the manual. ;-)

Try adding:

-std=c89 -pedantic

You might also enjoy adding:

-W -Wall

Regards,
Loren


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