mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
* include/stdlib.h: Remove malloc attribute from __posix_memalign.
* stdlib/stdlib.h: Likewise.
This commit is contained in:
parent
8215c9ecf2
commit
5bcbe69fa8
@ -95,8 +95,8 @@ extern int __cxa_atexit_internal (void (*func) (void *), void *arg, void *d)
|
||||
|
||||
extern void __cxa_finalize (void *d);
|
||||
|
||||
extern int __posix_memalign (void **memptr, size_t alignment, size_t size)
|
||||
__attribute_malloc__;
|
||||
extern int __posix_memalign (void **memptr, size_t alignment, size_t size);
|
||||
|
||||
extern void *__libc_memalign (size_t alignment, size_t size)
|
||||
__attribute_malloc__;
|
||||
|
||||
|
@ -618,7 +618,7 @@ extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
|
||||
#ifdef __USE_XOPEN2K
|
||||
/* Allocate memory of SIZE bytes with an alignment of ALIGNMENT. */
|
||||
extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
|
||||
__THROW __attribute_malloc__ __nonnull ((1)) __wur;
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
#endif
|
||||
|
||||
__BEGIN_NAMESPACE_STD
|
||||
|
Loading…
Reference in New Issue
Block a user