[Bug c++/11474] -Wreturn-type should default to on when compiling C++
zack at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jul 13 08:22:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11474
------- Additional Comments From zack at gcc dot gnu dot org 2003-07-13 08:22 -------
I don't think we can reject the program by default in either C or C++,
but I would support turning the warning on by default in both languages --
the condition it warns about is guaranteed to be a bug (unless the code
predates the existence of the 'void' return type, and even then the fix is
trivial)
More information about the Gcc-bugs
mailing list