Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Turn on -Werror by default
Date: Sun, 15 Jan 2006 18:21:00 -0000	[thread overview]
Message-ID: <20060115182055.GA8189@nevyn.them.org> (raw)
In-Reply-To: <200601151755.k0FHtSR9016305@elgar.sibelius.xs4all.nl>

On Sun, Jan 15, 2006 at 06:55:28PM +0100, Mark Kettenis wrote:
> From time to time I play with GCC 4, and try to fix a few problems,
> but I get the feeling I'm the only one.

You may be the only one who prioritizes fixing these warnings, which I
still maintain are mostly useless.  I think your sample is seriously
biased.  A few points:
  - You're the only active GDB developer I can think of offhand that
    considers the warnings a serious problem.  I do consider them a
    problem - one which should be fixed, before we make policy
    statements about them.
  - You're primarily focused on the BSDs, and the BSD system compilers
    can currently build GDB without warning.
  - Debian/unstable and Fedora Core, both popular development
    platforms, can not.
  - Many people doing development on GDB HEAD are likely to have GCC
    HEAD lying around, which also can't build GDB with -Werror.

This patch is a policy statement that the GDB developers agree with you
on the importance of warning-free code, which will inconvenience you
not at all, and me a great deal.  Can you see where I'm coming from?

I maintain that the correct way to turn on -Werror is to first fix the
warnings.  As the developer who thinks -Werror is an important step
forward, the burden is on you to make GDB warning-free on a reasonable
set of platforms - I think we both agree on that already.  I'm
disputing your reasonable set of platforms, however.

GCC 4 is unavoidably the future.  Ignoring it here won't make it go
away, it will just force someone else to clean up after you.

> I'm certainly not proposing to do that; even with -Werror enabled, GDB
> builds fine on most systems.  And when we enable -Werror, we should
> seriously consider turning it off again before release.

I disagree with "most" in this paragraph.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-01-15 18:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-08 17:59 Mark Kettenis
2006-01-08 22:25 ` Daniel Jacobowitz
2006-01-08 22:53   ` Mark Kettenis
2006-01-15 17:01     ` Daniel Jacobowitz
2006-01-15 17:56       ` Mark Kettenis
2006-01-15 18:21         ` Daniel Jacobowitz [this message]
2006-01-15 20:04           ` Mark Kettenis
2006-01-15 20:26             ` Daniel Jacobowitz
2006-01-15 20:40               ` Mark Kettenis

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=20060115182055.GA8189@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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