This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13687] -Wmissing-prototypes should not be ignored for C++
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2004 00:19:22 -0000
- Subject: [Bug c++/13687] -Wmissing-prototypes should not be ignored for C++
- References: <20040114222156.13687.t.schutter@att.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2004-01-15 00:19 -------
Subject: Re: -Wmissing-prototypes should not be ignored for C++
"t dot schutter at att dot net" <gcc-bugzilla@gcc.gnu.org> writes:
| Warning that the option is not valid is not the right solution!
| Emitting a warning about functions that use "C" linkange when compiling C++ code
| and -Wmissing-prototypes is specified is what should happen.
I don't understand that argument. "C" linkage is not a switch to
write C. There is nothing like a missing prototype in C++. There that
notion of warning is void os sense.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13687