Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-09-28 16:49:26 +0300
committerJeroen Bakker <jeroen@blender.org>2022-10-03 15:59:16 +0300
commit714e9749fbfc25ece00836362bb6b62f247ee2c0 (patch)
tree5607ad7100e8e77fb194f1198cb983b04cf3b95a /source/blender/blenlib
parent29e856bd3f25e4336ef39e51a23b673256f092e7 (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.h2
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(...)