This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: -Wunused warning in cp-namespace.c with old glibc...
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 24 Mar 2010 23:26:41 +0000 (UTC)
- Subject: Re: FYI: -Wunused warning in cp-namespace.c with old glibc...
- References: <20091230104816.GC548@adacore.com>
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