mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
2007-05-10 Ulrich Drepper <drepper@redhat.com>
* include/sys/cdefs.h: Redefine __nonnull so that test for incorrect parameters in the libc code itself are not omitted.
This commit is contained in:
parent
19ca40f571
commit
acf33246a3
@ -1,3 +1,8 @@
|
||||
2007-05-10 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* include/sys/cdefs.h: Redefine __nonnull so that test for
|
||||
incorrect parameters in the libc code itself are not omitted.
|
||||
|
||||
2007-05-07 Ulrich Drepper <drepper@redhat.com>
|
||||
Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
|
@ -2,6 +2,12 @@
|
||||
|
||||
#include <misc/sys/cdefs.h>
|
||||
|
||||
/* The compiler will optimize based on the knowledge the parameter is
|
||||
not NULL. This will omit tests. A robust implementation cannot allow
|
||||
this so when compiling glibc itself we ignore this attribute. */
|
||||
#undef __nonnull
|
||||
#define __nonnull(params)
|
||||
|
||||
extern void __chk_fail (void) __attribute__ ((__noreturn__));
|
||||
libc_hidden_proto (__chk_fail)
|
||||
rtld_hidden_proto (__chk_fail)
|
||||
|
Loading…
Reference in New Issue
Block a user