From 80a05e8f7d41ec7c336f1035a8597508de24c423 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 19 Sep 2013 14:29:32 -0700 Subject: [PATCH] Don't warn on uninitialized setting of complex.real/imag --- Cython/Compiler/FlowControl.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.7.4