This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/4] Add a signal-safe malloc replacement
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: OndÅej BÃlka <neleai at seznam dot cz>, Andrew Hunter <ahh at google dot com>, GNU C Library <libc-alpha at sourceware dot org>, "Carlos O'Donell" <carlos at redhat dot com>
- Date: Thu, 19 Dec 2013 11:20:56 -0800
- Subject: Re: [PATCH 2/4] Add a signal-safe malloc replacement
- Authentication-results: sourceware.org; auth=none
- References: <1386273671-13010-1-git-send-email-ahh at google dot com> <1386722143-10513-1-git-send-email-ahh at google dot com> <1386722143-10513-2-git-send-email-ahh at google dot com> <20131211100309 dot GA24512 at domone dot podge> <CALoOobMKYyD7G7fbYHq2aqx32S_QMs19DZY2YhJ-JA4_d4717A at mail dot gmail dot com> <CADroS=7LJ4uKGB30jsNn2xV5Dxr7eZ24H3NScHUCYWORUnMTfQ at mail dot gmail dot com> <CALoOobP0xGCB_6Vf9uTizqctJP1r9aW2eRoBFNeaHHASWd75mg at mail dot gmail dot com> <CALoOobOT_os7AuCB+_+fy+u9LOaRajBLoQKgf20vKeqYTxRJhg at mail dot gmail dot com> <Pine dot LNX dot 4 dot 64 dot 1312191656360 dot 8877 at digraph dot polyomino dot org dot uk> <20131219174011 dot GA24862 at domone dot podge> <Pine dot LNX dot 4 dot 64 dot 1312191744260 dot 8877 at digraph dot polyomino dot org dot uk>
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