From 974d2dc54aaed4f210ecd603737170187f9a0151 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 27 Jun 2014 00:31:50 +1000 Subject: BLI_array: avoid accidental assignment to BLI_array_count --- source/blender/blenlib/BLI_array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_array.h') 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. * -- cgit v1.2.3