This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13687] -Wmissing-prototypes should not be ignored for C++


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]