Don't warn on uninitialized setting of complex.real/imag
authorRobert Bradshaw <robertwb@gmail.com>
Thu, 19 Sep 2013 21:29:32 +0000 (14:29 -0700)
committerRobert Bradshaw <robertwb@gmail.com>
Thu, 19 Sep 2013 21:29:32 +0000 (14:29 -0700)
Cython/Compiler/FlowControl.py

index 5454b6c..46a79d8 100644 (file)
@@ -157,6 +157,7 @@ class ControlFlow(object):
     def is_statically_assigned(self, entry):
         if (entry.is_local and entry.is_variable and
                 (entry.type.is_struct_or_union or
+                 entry.type.is_complex or
                  entry.type.is_array or
                  entry.type.is_cpp_class)):
             # stack allocated structured variable => never uninitialised