[Bf-blender-cvs] [fb829480431] master: Fix strict compiler warning in C++ RNA

Sergey Sharybin noreply at git.blender.org
Tue May 30 10:59:01 CEST 2017


Commit: fb829480431250073bd50ecd89b6b9045b89a9c8
Author: Sergey Sharybin
Date:   Tue May 30 10:54:28 2017 +0200
Branches: master
https://developer.blender.org/rBfb829480431250073bd50ecd89b6b9045b89a9c8

Fix strict compiler warning in C++ RNA

Hopefully it is supported by all the compilers.

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

M	source/blender/makesrna/intern/makesrna.c

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

diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index 9d68c05dda0..de436172bfd 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -3746,7 +3746,7 @@ static const char *cpp_classes = ""
 "template<typename T, TBeginFunc Tbegin, TNextFunc Tnext, TEndFunc Tend>\n"
 "class CollectionIterator {\n"
 "public:\n"
-"	CollectionIterator() : t(iter.ptr), init(false) { iter.valid = false; }\n"
+"	CollectionIterator() : iter(), t(iter.ptr), init(false) { iter.valid = false; }\n"
 "	~CollectionIterator(void) { if (init) Tend(&iter); };\n"
 "\n"
 "	operator bool(void)\n"




More information about the Bf-blender-cvs mailing list