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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2003 14:40:44 -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 bangerth at dealii dot org 2003-07-14 14:40 -------
What's wrong with asking people to please compile their code with -W -Wall?
There are good reasons for most of the warning flags we have, so people should
just learn to use warning flags. It's not gcc's task to _think_ for
programmers unless they specifically ask for it.
By the same argument, we also don't switch on optimizations by default, but ask
people to do so explicitly on the command line.
W.