This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30551] -pedantic does not include -Wmain, but -pedantic-errors does make -Wmain cause error messages
- 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: 29 Oct 2007 20:35:08 -0000
- Subject: [Bug c/30551] -pedantic does not include -Wmain, but -pedantic-errors does make -Wmain cause error messages
- References: <bug-30551-9631@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from manu at gcc dot gnu dot org 2007-10-29 20:35 -------
Wmain is using pedwarn when it should use warning (OPT_Wmain,""). It is also an
error by default (unless -fpermissive) in C++ while it is not even enabled in
C.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-10-29 20:35:08
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30551