This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FYI: -Wunused warning in cp-namespace.c with old glibc...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]