[Cython] __Pyx_FinishRefcountContext() compiler warnings

Dag Sverre Seljebotn dagss at student.matnat.uio.no
Sat Feb 21 18:29:53 CET 2009


Jason Evans wrote:
> The following line in ModuleNode.py causes hundreds of compiler warnings 
> about statements with no effect when I compile Crux:
> 
> 	#define __Pyx_FinishRefcountContext() 0
> 
> IMO, the 0 should simply be removed, but this would also be okay if you 
> want a non-empty definition:
> 
> 	#define __Pyx_FinishRefcountContext() do {} while (0)
> 

Ahh, right. Thanks!

http://hg.cython.org/cython-devel/rev/b5723a7a044a


-- 
Dag Sverre


More information about the Cython-dev mailing list