diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-25 19:24:52 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-25 19:24:52 +0200 |
commit | 431905e63518af10b353747216bf52e278e54248 (patch) | |
tree | 0a55492068876398cb89c98817280e3b029e7914 /include/slibc-alloc.h | |
parent | todo: add procinit (diff) | |
download | slibc-431905e63518af10b353747216bf52e278e54248.tar.gz slibc-431905e63518af10b353747216bf52e278e54248.tar.bz2 slibc-431905e63518af10b353747216bf52e278e54248.tar.xz |
allocsize is dangerous
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'include/slibc-alloc.h')
-rw-r--r-- | include/slibc-alloc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/slibc-alloc.h b/include/slibc-alloc.h index 7da40f9..e902f70 100644 --- a/include/slibc-alloc.h +++ b/include/slibc-alloc.h @@ -178,7 +178,8 @@ void secure_free(void*); * @since Always. */ size_t allocsize(void*) - __GCC_ONLY(__attribute__((__warn_unused_result__))); + __GCC_ONLY(__attribute__((__warn_unused_result__))) + __warning("This function is dangerous, avoid using it instead of manual bookkeeping."); /** * Variant of `realloc` that overrides newly allocated space |