From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10595 invoked by alias); 10 Oct 2009 18:50:19 -0000 Received: (qmail 10586 invoked by uid 22791); 10 Oct 2009 18:50:18 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 10 Oct 2009 18:50:14 +0000 Received: (qmail 6042 invoked from network); 10 Oct 2009 18:50:13 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Oct 2009 18:50:13 -0000 From: Pedro Alves To: gdb@sourceware.org, Eli Zaretskii Subject: Re: A strange gcc behavior, and an argument against -Wno-unused Date: Sat, 10 Oct 2009 18:50:00 -0000 User-Agent: KMail/1.9.10 Cc: tromey@redhat.com, dave.korn.cygwin@googlemail.com, msnyder@vmware.com References: <4ACFD8B7.4090902@vmware.com> <83eipbjdpf.fsf@gnu.org> In-Reply-To: <83eipbjdpf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910101950.27107.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00197.txt.bz2 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