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] |
On Saturday 29 December 2012 16:23:27 Andreas Schwab wrote: > Mike Frysinger <vapier@gentoo.org> writes: > > On Saturday 29 December 2012 15:44:49 Andreas Schwab wrote: > >> Mike Frysinger writes: > >> > On Saturday 29 December 2012 01:26:56 Andrew Pinski wrote: > >> >> On Fri, Dec 28, 2012 at 10:01 PM, Mike Frysinger wrote: > >> >> > there are also attributes unconditionally used such as: > >> >> > stdlib.h: malloc (new to gcc-3.0) > >> >> > mathcalls.h: nonnull (new to gcc-3.3) > >> >> > stdlib.h: alloc_size (new to gcc-4.3) > >> >> > >> >> unknown attributes are normally ignored even with -W -Wall (though > >> >> not with -Wattributes) so those should be ok. > >> > > >> > yes, but it makes -Werror and such angry, > >> > >> Only with -Wsystem-headers. > > > > if your gcc supports that, yes :). > > No, even if it doesn't. $ /lib/libc.so.6 | head -1 GNU C Library stable release version 2.16, by Roland McGrath et al. $ cat test.c #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <unistd.h> main(){printf("%p\n", environ[0]);} $ gcc-2.95.3 test.c In file included from test.c:3: /usr/include/stdlib.h:514: warning: `__malloc__' attribute directive ignored /usr/include/stdlib.h:514: warning: `__alloc_size__' attribute directive ignored -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |