Ticket #6 (closed defect: fixed)
gcc warns of unused variables in module initialization
| Reported by: | robertwb | Owned by: | scoder, dagss |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.11 |
| Component: | Code Generation | Keywords: | |
| Cc: |
Description
I create foo.pyx containing either or both of the following statements:
cdef double INFINITY = float('inf')
assert True
I build it using Cython 0.9.6.13.1 and gcc 4.1.3. The build succeeds and the code works, but gcc issues the following warning:
foo.c: In function ‘initfoo’: foo.c:130: warning: unused variable ‘__pyx_4’ foo.c:129: warning: unused variable ‘__pyx_3’
I see no such warnings when building the same code under Cython 0.9.6.12.
Change History
Note: See
TracTickets for help on using
tickets.
