public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gdr at integrable-solutions dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/11474] -Wreturn-type should default to on when compiling C++
Date: Mon, 14 Jul 2003 14:54:00 -0000	[thread overview]
Message-ID: <20030714145443.2188.qmail@sources.redhat.com> (raw)
In-Reply-To: <20030709142428.11474.lloyd@randombit.net>

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 gdr at integrable-solutions dot net  2003-07-14 14:54 -------
Subject: Re:  -Wreturn-type should default to on when compiling C++

"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| What's wrong with asking people to please compile their code with -W -Wall?

In some circumstances, there are not practical.  
I do not have strong feelings about warning by default.  

| There are good reasons for most of the warning flags we have,

there are reasons we have flags.  That they are "good" depends on your
definition of "good", and is certainly a matter of debate.  The issue
is whether the warning should be on by default or not.  
The same arguments you're making can be used for having the warning on
by default and telling people  to use the -Wno- corresponding flags.
As you can see, the line you're reasoning cannot be  determining.

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

But it just does that by deciding which flags to turn off by default! 

-- Gaby


  parent reply	other threads:[~2003-07-14 14:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-09 14:24 [Bug c++/11474] New: " lloyd at randombit dot net
2003-07-09 14:39 ` [Bug c++/11474] " bangerth at dealii dot org
2003-07-13  7:40 ` gdr at integrable-solutions dot net
2003-07-13  7:41 ` gdr at integrable-solutions dot net
2003-07-13  8:22 ` zack at gcc dot gnu dot org
2003-07-13 16:39 ` lloyd at randombit dot net
2003-07-13 16:51 ` jsm at polyomino dot org dot uk
2003-07-14 14:40 ` bangerth at dealii dot org
2003-07-14 14:54 ` gdr at integrable-solutions dot net [this message]
2003-07-14 15:12 ` bangerth at dealii dot org
     [not found] <bug-11474-4@http.gcc.gnu.org/bugzilla/>
2020-04-26  9:43 ` redi at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030714145443.2188.qmail@sources.redhat.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).