Ticket #6 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

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

Changed 5 years ago by robertwb

  • owner changed from robertwb to somebody

Changed 5 years ago by robertwb

  • milestone set to 0.9.8.2

Changed 5 years ago by robertwb

  • milestone changed from 0.10 to 0.11

Changed 4 years ago by scoder

  • priority changed from major to minor
  • component changed from Build System to Code Generation
  • milestone changed from 0.11 to wishlist

this isn't broken, it's just that temps are allocated prematurely

Changed 4 years ago by scoder

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from wishlist to 0.11

this works for me now (see test case in run/specialfloat.pyx)

Changed 4 years ago by scoder

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 4 years ago by scoder

  • owner changed from somebody to scoder, dagss
  • status changed from reopened to new

Changed 4 years ago by scoder

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.