[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57028] trunk/blender/source/blender/ blenlib/BLI_array.h: code cleanup: quiet pedantic warning in array macro.
Campbell Barton
ideasman42 at gmail.com
Sun May 26 00:26:41 CEST 2013
Revision: 57028
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57028
Author: campbellbarton
Date: 2013-05-25 22:26:41 +0000 (Sat, 25 May 2013)
Log Message:
-----------
code cleanup: quiet pedantic warning in array macro.
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/BLI_array.h
Modified: trunk/blender/source/blender/blenlib/BLI_array.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_array.h 2013-05-25 22:07:21 UTC (rev 57027)
+++ trunk/blender/source/blender/blenlib/BLI_array.h 2013-05-25 22:26:41 UTC (rev 57028)
@@ -89,7 +89,7 @@
/* don't add _##arr##_count below because it must be zero */ \
(_bli_array_totalsize_static(arr) >= _##arr##_count + num)) ? \
/* we have an empty array and a static var big enough */ \
- (arr = (void *)_##arr##_static) \
+ (void)(arr = (void *)_##arr##_static) \
: \
/* use existing static array or allocate */ \
(LIKELY(_bli_array_totalsize(arr) >= _##arr##_count + num) ? \
More information about the Bf-blender-cvs
mailing list