FYI: -Wunused warning in cp-namespace.c with old glibc...
Joseph S. Myers
joseph@codesourcery.com
Wed Mar 24 23:26:00 GMT 2010
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
More information about the Gdb-patches
mailing list