Ticket #6 (new defect)

Opened 8 months ago

Last modified 2 months ago

gcc warns of unused variables in module initialization

Reported by: robertwb Assigned to: somebody
Priority: major Milestone: 0.11
Component: Build System Version:
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

05/05/2008 05:23:05 PM changed by robertwb

  • owner changed from robertwb to somebody.

08/18/2008 08:57:34 PM changed by robertwb

  • milestone set to 0.9.8.2.

11/08/2008 02:35:55 PM changed by robertwb

  • milestone changed from 0.10 to 0.11.