diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-08 19:11:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-08 19:11:13 +0400 |
commit | 76629c11ae4190b0eec2315360b1ec3379e751c3 (patch) | |
tree | 32db8adf20ceae09091a2a2e23f10d7f29b49413 /intern | |
parent | 45aeee6a34e71060e672fba2ea6713e8f04659d0 (diff) |
correct use of __attribute__((nonnull))
Diffstat (limited to 'intern')
-rw-r--r-- | intern/guardedalloc/MEM_guardedalloc.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h index cc61adf8a4f..7fcfba5afec 100644 --- a/intern/guardedalloc/MEM_guardedalloc.h +++ b/intern/guardedalloc/MEM_guardedalloc.h @@ -73,18 +73,13 @@ extern "C" { size_t MEM_allocN_len(void *vmemh) #ifdef __GNUC__ __attribute__((warn_unused_result)) - __attribute__((nonnull)) #endif ; /** * Release memory previously allocatred by this module. */ - short MEM_freeN(void *vmemh) -#ifdef __GNUC__ - __attribute__((nonnull)) -#endif - ; + short MEM_freeN(void *vmemh); /** * Return zero if memory is not in allocated list @@ -97,7 +92,6 @@ extern "C" { void *MEM_dupallocN(void *vmemh) #ifdef __GNUC__ __attribute__((warn_unused_result)) - __attribute__((nonnull)) #endif ; @@ -109,7 +103,6 @@ extern "C" { void *MEM_reallocN(void *vmemh, size_t len) #ifdef __GNUC__ __attribute__((warn_unused_result)) - __attribute__((nonnull)) __attribute__((alloc_size(2))) #endif ; |