projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d53702
)
Don't warn on uninitialized setting of complex.real/imag
author
Robert Bradshaw
<robertwb@gmail.com>
Thu, 19 Sep 2013 21:29:32 +0000
(14:29 -0700)
committer
Robert Bradshaw
<robertwb@gmail.com>
Thu, 19 Sep 2013 21:29:32 +0000
(14:29 -0700)
Cython/Compiler/FlowControl.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/FlowControl.py
b/Cython/Compiler/FlowControl.py
index
5454b6c
..
46a79d8
100644
(file)
--- 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