This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/17307] Spurious -Wsign-conversion warning with clang-3.5, due to excessively clever glibc <sys/resource.h>
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 26 Aug 2014 03:54:19 +0000
- Subject: [Bug libc/17307] Spurious -Wsign-conversion warning with clang-3.5, due to excessively clever glibc <sys/resource.h>
- Auto-submitted: auto-generated
- References: <bug-17307-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17307
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #3 from Rich Felker <bugdal at aerifal dot cx> ---
The "cleverness" is just wrong and should be removed. It makes it impossible to
use function pointers to setrlimit since they have the wrong type.
(Technically, gcc may let you get by with just a warning when the function
pointer type mismatches, but it's invalid C and should be an error.)
--
You are receiving this mail because:
You are on the CC list for the bug.