diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-01-07 19:42:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-01-07 19:42:24 +0000 |
commit | 9ee4c01788073b3f061b84c0df966dd334cf0ca2 (patch) | |
tree | be4cf37218adccf6dc4b44f1170ba68ff1f7b269 /stdlib/stdlib.h | |
parent | e2070ca2b40d3c2dd20d110268ce7b4007a17f4f (diff) | |
download | glibc-9ee4c01788073b3f061b84c0df966dd334cf0ca2.tar.gz glibc-9ee4c01788073b3f061b84c0df966dd334cf0ca2.tar.xz glibc-9ee4c01788073b3f061b84c0df966dd334cf0ca2.zip |
Update.
* misc/sys/cdefs.h (__attribute_warn_unused_result__): Define. * stdlib/stdlib.h: Make realloc with __attribute_warn_unused_result__ instead of __wur. * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__ markers as in <stdlib.h>.
Diffstat (limited to 'stdlib/stdlib.h')
-rw-r--r-- | stdlib/stdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index e1d60d7619..4a1571e7db 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -596,7 +596,7 @@ __BEGIN_NAMESPACE_STD /* Re-allocate the previously allocated block in PTR, making the new block SIZE bytes long. */ extern void *realloc (void *__ptr, size_t __size) - __THROW __attribute_malloc__ __wur; + __THROW __attribute_malloc__ __attribute_warn_unused_result__; /* Free a block allocated by `malloc', `realloc' or `calloc'. */ extern void free (void *__ptr) __THROW; __END_NAMESPACE_STD |