[Pyrex] Unused variables

Jim Fulton jim at zope.com
Fri Dec 2 00:03:31 CET 2005


Greg Ewing wrote:
> Jim Fulton wrote:
> 
>  > Pyrex is generating
>  > code with unused labels and variables and with static declarations for
>  > things that aren't defined.  I wasn't sure if this was normal
> 
> Yes, it's normal, and yes it's not ideal, but fixing
> it is non-trivial.
> 
> Elias Pschernig wrote:
> 
>> I get the same here. And I agree, would be nice to fix this. Maybe
>> simply the -Wall could somehow be removed from the distutils process?
> 
> 
> I looked into doing that once, but it's not easy.
> Distutils doesn't provide the -Wall itself, it just
> uses whatever compiler options your Python installation
> is set up to use by default. The internals of Distutils
> are sufficiently convoluted that I gave up trying to
> find a way of overriding it.
> 
> Instead I hacked the Makefile of my Python installation
> to remove the -Wall.
> 
> Someone with a better knowledge of Distutils internals
> is welcome to have another go at this.

I think it would be a better use of time to try to fix
the code generation. (Easy for me to say. ;)

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org



More information about the Pyrex mailing list