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:
authorCampbell Barton <ideasman42@gmail.com>2014-06-26 18:31:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-26 18:31:50 +0400
commit974d2dc54aaed4f210ecd603737170187f9a0151 (patch)
treed55eef27514de6e97f276ee2cddf20f08fa1e51e /source/blender/blenlib/BLI_array.h
parent898667b49711a5bf03166810b76fab33ebeecb00 (diff)
BLI_array: avoid accidental assignment to BLI_array_count
Diffstat (limited to 'source/blender/blenlib/BLI_array.h')
-rw-r--r--source/blender/blenlib/BLI_array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_array.h b/source/blender/blenlib/BLI_array.h
index 4e2cfe09219..f8e23629429 100644
--- a/source/blender/blenlib/BLI_array.h
+++ b/source/blender/blenlib/BLI_array.h
@@ -78,7 +78,7 @@ void _bli_array_grow_func(void **arr_p, const void *arr_static,
char _##arr##_static[maxstatic * sizeof(*(arr))]
/* this returns the logical size of the array, not including buffering. */
-#define BLI_array_count(arr) _##arr##_count
+#define BLI_array_count(arr) ((void)0, _##arr##_count)
/* Grow the array by a fixed number of items.
*