diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-09-28 16:49:26 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-09-28 17:03:39 +0300 |
commit | bb4e09ddc565b96684e280323cf4afcc2d39986f (patch) | |
tree | a84de193a4dab838f851309f15d12449707aafe7 /source/blender/blenlib | |
parent | fe19de5fccac1a26bfe87bc41386791e5ee049f2 (diff) |
Fix compiler warnings with clang
This attribute only works on functions in clang, not function pointers.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_compiler_attrs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_compiler_attrs.h b/source/blender/blenlib/BLI_compiler_attrs.h index 9ee626296cb..f0566e0b3e2 100644 --- a/source/blender/blenlib/BLI_compiler_attrs.h +++ b/source/blender/blenlib/BLI_compiler_attrs.h @@ -46,7 +46,7 @@ #endif /* the function return value points to memory (2 args for 'size * tot') */ -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__clang__) # define ATTR_ALLOC_SIZE(args...) __attribute__((alloc_size(args))) #else # define ATTR_ALLOC_SIZE(...) |