[Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 7 18:11:00 GMT 2007
------- Comment #4 from manu at gcc dot gnu dot org 2007-03-07 18:11 -------
(In reply to comment #3)
> Subject: Re: -std=c89 doesn't warn about gcc's "?:" extension
>
> Where the standard specified with @option{-std} represents a GNU
> extended dialect of C, such as @samp{gnu89} or @samp{gnu99}, there is a
> corresponding @dfn{base standard}, the version of ISO C on which the GNU
> extended dialect is based. Warnings from @option{-pedantic} are given
> where they are required by the base standard. (It would not make sense
> for such warnings to be given only for features not in the specified GNU
> C dialect, since by definition the GNU dialects of C include all
> features the compiler supports with the given option, and there would be
> nothing to warn about.)
>
Sorry, I still don't understand what is the difference between -std=c89 and
-std=gnu89.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28368
More information about the Gcc-bugs
mailing list