robertwb / issues-import-test

0 stars 0 forks source link

gcc warns of unused variables in module initialization #22

Closed robertwb closed 8 years ago

robertwb commented 8 years ago

Reported by robertwb on 6 May 2008 00:17 UTC 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.

Migrated-From: http://trac.cython.org/ticket/6

robertwb commented 8 years ago

Modified by robertwb on 6 May 2008 00:23 UTC

robertwb commented 8 years ago

Modified by robertwb on 19 Aug 2008 03:57 UTC

robertwb commented 8 years ago

Modified by robertwb on 8 Nov 2008 22:35 UTC

robertwb commented 8 years ago

Comment by scoder on 13 Jan 2009 20:45 UTC this isn't broken, it's just that temps are allocated prematurely

robertwb commented 8 years ago

Comment by scoder on 8 Mar 2009 12:43 UTC this works for me now (see test case in run/specialfloat.pyx)

robertwb commented 8 years ago

Modified by scoder on 14 Mar 2009 08:02 UTC

robertwb commented 8 years ago

Modified by scoder on 14 Mar 2009 08:02 UTC

robertwb commented 8 years ago

Modified by scoder on 14 Mar 2009 08:02 UTC