This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Mar 2007 17:57:27 -0000
- Subject: [Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension
- References: <bug-28368-838@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from manu at gcc dot gnu dot org 2007-03-07 17:57 -------
The documentation says that you should use -pedantic to warn about GCC
extensions[*], so I am not sure whether this is valid. But honestly, from the
description of "-std=", I would understand that GNU extensions are disabled
when using -std=c89 or that pedantic does not warn for them when using
-std=gnu89, but neither of those are true.
[*] http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html#C-Extensions
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28368