Commit 83740a00 authored by Lisandro Dalcin's avatar Lisandro Dalcin

some fixes in order to silent GCC warnings about unused stuff

parent f9c7772b
......@@ -15,3 +15,6 @@ cdef double spam "c_spam" (int i, float f):
b = p.i
p.i = x
p.i = y
cdef inline double spam2 "c_spam2" (int i, float f):
return spam(i,f)
......@@ -4,3 +4,7 @@ cdef int grail():
spam = grail
spam()
ctypedef int funcptr_t()
cdef inline funcptr_t* dummy():
return &grail
......@@ -23,7 +23,7 @@ def range_loop_indices():
Optimized integer for loops using range() should follow Python behavior,
and leave the index variable with the last value of the range.
"""
cdef int i, j, k, l, m
cdef int i, j, k=0, l, m
for i in range(10): pass
for j in range(2,10): pass
for k in range(0,10,get_step()): pass
......@@ -40,4 +40,4 @@ def from_loop_indices():
for i from 0 <= i < 10 by get_step(): pass
for j from 0 <= j < 10: pass
for k from 10 > k > 0: pass
return i, j, k
\ No newline at end of file
return i, j, k
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment