diff options
Diffstat (limited to 'source/blender/blenlib/BLI_memarena.h')
-rw-r--r-- | source/blender/blenlib/BLI_memarena.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_memarena.h b/source/blender/blenlib/BLI_memarena.h index 092bb639b91..d54dab42e05 100644 --- a/source/blender/blenlib/BLI_memarena.h +++ b/source/blender/blenlib/BLI_memarena.h @@ -55,6 +55,7 @@ typedef struct MemArena MemArena; struct MemArena *BLI_memarena_new(const int bufsize, const char *name) #if MEM_GNU_ATTRIBUTES +__attribute__((malloc)) __attribute__((warn_unused_result)) __attribute__((nonnull(2))) #endif @@ -85,6 +86,7 @@ __attribute__((nonnull(1))) void *BLI_memarena_alloc(struct MemArena *ma, int size) #if MEM_GNU_ATTRIBUTES +__attribute__((malloc)) __attribute__((warn_unused_result)) __attribute__((nonnull(1))) __attribute__((alloc_size(2))) |