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: [PATCH 2/4] Add a signal-safe malloc replacement


On Thu, Dec 19, 2013 at 9:48 AM, Joseph S. Myers
<joseph@codesourcery.com> wrote:

> On Thu, 19 Dec 2013, Ondrej Bilka wrote:
>
>> One possible approach would be have a warning subsection in Makefile like:
>>
>> # gcc gets false positive on line 42
>> CFLAGS-foo.c += -Wno-error=bar

FWIW, here is the set of warnings I see when building with gcc (GCC)
4.9.0 20131204 (experimental) on x86_64 and i686:


 grep 'warning: ' ../build/make.LOG
../locale/weightwc.h:88:7: warning: *((void *)&str+4) may be used
uninitialized in this function [-Wmaybe-uninitialized]
../locale/weightwc.h:88:7: warning: *((void *)&str+4) may be used
uninitialized in this function [-Wmaybe-uninitialized]
connections.c:1487:11: warning: ignoring return value of setuid,
declared with attribute warn_unused_result [-Wunused-result]
connections.c:1502:11: warning: ignoring return value of setuid,
declared with attribute warn_unused_result [-Wunused-result]
connections.c:1503:11: warning: ignoring return value of setgid,
declared with attribute warn_unused_result [-Wunused-result]
connections.c:1547:14: warning: ignoring return value of setuid,
declared with attribute warn_unused_result [-Wunused-result]
connections.c:1548:14: warning: ignoring return value of setgid,
declared with attribute warn_unused_result [-Wunused-result]

Building tests does generate a lot more ...

-- 
Paul Pluzhnikov


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