From: Robert Bradshaw Date: Thu, 19 Sep 2013 21:29:32 +0000 (-0700) Subject: Don't warn on uninitialized setting of complex.real/imag X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80a05e8f7d41ec7c336f1035a8597508de24c423;p=platform%2Fupstream%2Fpython-cython.git Don't warn on uninitialized setting of complex.real/imag --- diff --git a/Cython/Compiler/FlowControl.py b/Cython/Compiler/FlowControl.py index 5454b6c..46a79d8 100644 --- a/Cython/Compiler/FlowControl.py +++ b/Cython/Compiler/FlowControl.py @@ -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