Commit: e0a6582b4008e5cb5757e2af7b3f8557ff53adff
Author: Sergey Sharybin
Date:   Thu Nov 2 17:54:06 2017 +0100
Branches: blender2.8
https://developer.blender.org/rBe0a6582b4008e5cb5757e2af7b3f8557ff53adff

Fix iterator usage from C++ code

Old code was not supported by GCC, see some details and progress

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606

===================================================================

M       source/blender/blenlib/BLI_iterator.h

===================================================================

diff --git a/source/blender/blenlib/BLI_iterator.h 
b/source/blender/blenlib/BLI_iterator.h
index 39d5cc12d87..dffdeec949a 100644
--- a/source/blender/blenlib/BLI_iterator.h
+++ b/source/blender/blenlib/BLI_iterator.h
@@ -41,9 +41,8 @@ typedef void (*IteratorBeginCb)(BLI_Iterator *iter, void 
*data_in);
 {                                                                              
      \
        _type _instance;                                                        
         \
        IteratorCb callback_end_func = callback_end;                            
         \
-       BLI_Iterator iter_macro = {                                             
         \
-               .skip = false,                                                  
             \
-       };                                                                      
         \
+       BLI_Iterator iter_macro;                                                
         \
+       iter_macro.skip = false;                                                
         \
        for (callback_begin(&iter_macro, (_data_in));                           
         \
             iter_macro.valid;                                                  
         \
             callback_next(&iter_macro))                                        
         \

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to