summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2015-07-21 00:13:57 (GMT)
committerMike Hommey <mh@glandium.org>2015-07-21 00:16:07 (GMT)
commit50cd636eedfdc14d68f3917055fe2cc3fc72e853 (patch)
treee8d6f4fb8a2052a70dd0f4099fa9c7ea94e3a98e /include
parent218b15cc299ccb8114e52df3eb0f7a9dc810a4b1 (diff)
downloadjemalloc-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 'include')
-rw-r--r--include/jemalloc/jemalloc_protos.h.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/jemalloc/jemalloc_protos.h.in b/include/jemalloc/jemalloc_protos.h.in
index e77bd28..ef4b35e 100644
--- a/include/jemalloc/jemalloc_protos.h.in
+++ b/include/jemalloc/jemalloc_protos.h.in
@@ -13,7 +13,7 @@ JEMALLOC_EXPORT void *@je_@calloc(size_t num, size_t size) JEMALLOC_CXX_THROW
JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE2(1, 2) JEMALLOC_NOTHROW;
JEMALLOC_EXPORT int @je_@posix_memalign(void **memptr, size_t alignment,
size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(nonnull(1))
- JEMALLOC_ALLOC_SIZE(2) JEMALLOC_NOTHROW;
+ JEMALLOC_NOTHROW;
JEMALLOC_EXPORT void *@je_@aligned_alloc(size_t alignment, size_t size)
JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE(2)
JEMALLOC_NOTHROW;
@@ -27,7 +27,7 @@ JEMALLOC_EXPORT void *@je_@mallocx(size_t size, int flags)
JEMALLOC_EXPORT void *@je_@rallocx(void *ptr, size_t size, int flags)
JEMALLOC_ALLOC_SIZE(2) JEMALLOC_NOTHROW;
JEMALLOC_EXPORT size_t @je_@xallocx(void *ptr, size_t size, size_t extra,
- int flags) JEMALLOC_ALLOC_SIZE(2) JEMALLOC_NOTHROW;
+ int flags) JEMALLOC_NOTHROW;
JEMALLOC_EXPORT size_t @je_@sallocx(const void *ptr, int flags)
JEMALLOC_ATTR(pure) JEMALLOC_NOTHROW;
JEMALLOC_EXPORT void @je_@dallocx(void *ptr, int flags) JEMALLOC_NOTHROW;