Re: GCC accepts dynamically-sized array in sizeof with -std=c89

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18/04/2008, Jim Wilson <wilson@xxxxxxxxxxxxx> wrote:
>  Adding -pedantic does generate the warning.  Perhaps you expected a warning
> without -pedantic?  If you read the docs carefully, you will see that
> -std=c89 enables all features of that standard, but does not disable GNU
> extensions to that standard.  You need -pedantic for that.

You are right, I have misted -pedantic and with -pedantic-errors the
example does generated the error.

Regards, Igor

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux