This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: A strange gcc behavior, and an argument against -Wno-unused
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb at sourceware dot org, Eli Zaretskii <eliz at gnu dot org>
- Cc: tromey at redhat dot com, dave dot korn dot cygwin at googlemail dot com, msnyder at vmware dot com
- Date: Sat, 10 Oct 2009 19:50:26 +0100
- Subject: Re: A strange gcc behavior, and an argument against -Wno-unused
- References: <4ACFD8B7.4090902@vmware.com> <m37hv35cnx.fsf@fleche.redhat.com> <83eipbjdpf.fsf@gnu.org>
On Saturday 10 October 2009 19:39:24, Eli Zaretskii wrote:
> Thanks, that's old enough to be useful for most, if not all, of those
> who build GDB.
To be clear, FRT: I don't think it really matters which version
a "positive" -W warning switch went in (-Wno-* switches matter,
because otherwise we wouldn't be silencing a build breaking
warning on older gcc's we may care about). Even if a switch is
found only on more recent gcc's, if it uncovers bugs, it's
useful. People using older gcc's just don't get the new
warnings, as gdb's build system takes care of confirming the
switch works at all before using it.
--
Pedro Alves