[Bug c++/13687] -Wmissing-prototypes should not be ignored for C++
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 15 00:17:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list