Timing macros: remove the (void)0 at the end of TIMEIT_BLOCK_INIT,
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 21 Jan 2014 14:48:07 +0000 (15:48 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 21 Jan 2014 14:50:44 +0000 (15:50 +0100)
it prevents declaring/using more than one of these timing blocks in a same code block
(C rule, no var declaration and code mixing)...

source/blender/blenlib/PIL_time_utildefines.h

index 135817f6a17d79d4d948578232b9749042ffa389..4141befb1303e5aeb36b2cbda17f92dd2a9bc1fc 100644 (file)
@@ -72,9 +72,8 @@
                TIMEIT_END(id);                                                       \
        } (void)0
 
-#define TIMEIT_BLOCK_INIT(id) \
-       double _timeit_var_##id = 0; \
-       (void) 0
+#define TIMEIT_BLOCK_INIT(id)                                                 \
+       double _timeit_var_##id = 0
 
 #define TIMEIT_BLOCK_START(id)                                                \
        {                                                                         \