This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11474] -Wreturn-type should default to on when compiling C++
- From: "zack at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2003 08:22:19 -0000
- Subject: [Bug c++/11474] -Wreturn-type should default to on when compiling C++
- References: <20030709142428.11474.lloyd@randombit.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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)