diff options
author | Mike Hommey <mh@glandium.org> | 2015-07-21 00:13:57 (GMT) |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2015-07-21 00:16:07 (GMT) |
commit | 50cd636eedfdc14d68f3917055fe2cc3fc72e853 (patch) | |
tree | e8d6f4fb8a2052a70dd0f4099fa9c7ea94e3a98e /src/jemalloc.c | |
parent | 218b15cc299ccb8114e52df3eb0f7a9dc810a4b1 (diff) | |
download | jemalloc-50cd636eedfdc14d68f3917055fe2cc3fc72e853.zip jemalloc-50cd636eedfdc14d68f3917055fe2cc3fc72e853.tar.gz jemalloc-50cd636eedfdc14d68f3917055fe2cc3fc72e853.tar.bz2 |
Remove JEMALLOC_ALLOC_SIZE annotations on functions not returning pointers
As per gcc documentation:
The alloc_size attribute is used to tell the compiler that the function
return value points to memory (...)
This resolves #245.
Diffstat (limited to 'src/jemalloc.c')
-rw-r--r-- | src/jemalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index fc223da..cf6b78f 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -1531,7 +1531,7 @@ label_oom: } JEMALLOC_EXPORT int -JEMALLOC_ATTR(nonnull(1)) JEMALLOC_ALLOC_SIZE(2) JEMALLOC_NOTHROW +JEMALLOC_ATTR(nonnull(1)) JEMALLOC_NOTHROW je_posix_memalign(void **memptr, size_t alignment, size_t size) { int ret = imemalign(memptr, alignment, size, sizeof(void *)); @@ -2277,7 +2277,7 @@ ixallocx_prof(tsd_t *tsd, void *ptr, size_t old_usize, size_t size, } JEMALLOC_EXPORT size_t -JEMALLOC_ALLOC_SIZE(2) JEMALLOC_NOTHROW +JEMALLOC_NOTHROW je_xallocx(void *ptr, size_t size, size_t extra, int flags) { tsd_t *tsd; |