diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-13 07:47:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-13 07:47:19 +0300 |
commit | f731bce6cd42eda9c1ca5962b8d1ec99254c478f (patch) | |
tree | f986c9aff9b670ad67d6255096ce22ee39eb5ddf /source/blender/blenlib/BLI_mempool.h | |
parent | 4c3bb60d0fef898fc318d4a0b762c29d0451988b (diff) |
Cleanup: use ATTR_RETURNS_NONNULL function attribute
Diffstat (limited to 'source/blender/blenlib/BLI_mempool.h')
-rw-r--r-- | source/blender/blenlib/BLI_mempool.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h index c11802d6270..4d9381093c7 100644 --- a/source/blender/blenlib/BLI_mempool.h +++ b/source/blender/blenlib/BLI_mempool.h @@ -38,9 +38,12 @@ typedef struct BLI_mempool BLI_mempool; BLI_mempool *BLI_mempool_create(unsigned int esize, unsigned int totelem, unsigned int pchunk, - unsigned int flag) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT; -void *BLI_mempool_alloc(BLI_mempool *pool) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); -void *BLI_mempool_calloc(BLI_mempool *pool) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); + unsigned int flag) + ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; +void *BLI_mempool_alloc(BLI_mempool *pool) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL + ATTR_NONNULL(1); +void *BLI_mempool_calloc(BLI_mempool *pool) + ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL ATTR_NONNULL(1); void BLI_mempool_free(BLI_mempool *pool, void *addr) ATTR_NONNULL(1, 2); void BLI_mempool_clear_ex(BLI_mempool *pool, const int totelem_reserve) ATTR_NONNULL(1); void BLI_mempool_clear(BLI_mempool *pool) ATTR_NONNULL(1); |