summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorda-woods <dw-git@d-woods.co.uk>2020-06-01 19:32:29 +0100
committerStefan Behnel <stefan_ml@behnel.de>2020-06-04 12:23:58 +0200
commit7a646983d5bfb1662501e389213d839fdd4917bd (patch)
treecb70c73cfb383d3e4109aac8e46f338cf2b19216
parent2a6aa2ef824e3cf2217eb9524996f64f8954cebd (diff)
downloadcython-7a646983d5bfb1662501e389213d839fdd4917bd.tar.gz
Use variable to aboid compiler warning
-rw-r--r--tests/run/fused_types.pyx3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run/fused_types.pyx b/tests/run/fused_types.pyx
index 732ea5359..851f3fbd9 100644
--- a/tests/run/fused_types.pyx
+++ b/tests/run/fused_types.pyx
@@ -404,7 +404,8 @@ def test_composite(fused_composite x):
### see GH3642 - presence of cdef inside "unrelated" caused a type to be incorrectly inferred
cdef unrelated(cython.floating x):
- cdef cython.floating t
+ cdef cython.floating t = 1
+ return t
cdef handle_float(float* x): return 'float'