From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31875 invoked by alias); 24 Mar 2010 23:26:48 -0000 Received: (qmail 31862 invoked by uid 22791); 24 Mar 2010 23:26:48 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 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; Wed, 24 Mar 2010 23:26:44 +0000 Received: (qmail 32371 invoked from network); 24 Mar 2010 23:26:42 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 24 Mar 2010 23:26:42 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.69) (envelope-from ) id 1NuZyD-00068j-JB; Wed, 24 Mar 2010 23:26:41 +0000 Date: Wed, 24 Mar 2010 23:26:00 -0000 From: "Joseph S. Myers" To: Joel Brobecker cc: gdb-patches@sourceware.org Subject: Re: FYI: -Wunused warning in cp-namespace.c with old glibc... In-Reply-To: <20091230104816.GC548@adacore.com> Message-ID: References: <20091230104816.GC548@adacore.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00837.txt.bz2 On Wed, 30 Dec 2009, Joel Brobecker wrote: > On the older system, we end up getting a warning-turned-error: > > [...]/gdb/cp-namespace.c: In function 'cp_lookup_transparent_type_loop': > [...]/gdb/cp-namespace.c:542: error: value computed is not used FWIW, I've applied a patch to GCC trunk's fixincludes to make it fix this issue in the old bits/string2.h. That allows the error to be avoided when using a new GCC with glibc that predates the GCC version conditional and use of __builtin_strncpy. -- Joseph S. Myers joseph@codesourcery.com