This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: sparc: fix for missing include file


From: David Miller <davem@davemloft.net>
Date: Thu, 11 Dec 2014 15:05:35 -0500 (EST)

> From: OndÅej BÃlka <neleai@seznam.cz>
> Date: Thu, 11 Dec 2014 14:57:16 +0100
> 
>> This was not commited yet, David could you commit it?
> 
> I don't want to commit a change into a tree that doesn't even
> build successfully for me:
> 
> malloc.c: In function â_int_mallocâ:

So I removed the inlines just to make forward progress, then got:

strncat.c: In function âstrncatâ:
strncat.c:76:6: error: âcâ may be used uninitialized in this function [-Werror=uninitialized]

This is the generic C strncat.c in string/strncat.c, and actually the
compiler is right here in that when 'n' is zero 'c' will in fact be
tested without being initialized to anything.

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