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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2004 00:17:11 -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 bangerth at dealii dot org 2004-01-15 00:17 -------
I agree with Andrew. This warning doesn't make much sense in C++. It is
meant in C since you can call a function without a prior prototype, which
will result in undefined behavior. It is not meant to protect you from
accidentially mistyping the name of a function, in which the behavior
is perfectly defined: you get a linker error, or in the case you cite
you end up with a segfault or something alike if you call a non-existent
function in a .so.
-Wmissing-prototypes is simply not intended for what you want.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13687