Using the latest cython-dev, the following program causes a C compiler 
warning:

---------------------------------------------------------------------
cdef foo():
     cdef x = 42

     if x == 42 and x == 43:
         print "foo"

foo()
---------------------------------------------------------------------
lyken:~> cython foo.pyx
lyken:~> gcc -g -shared -pthread -fPIC -fwrapv -Wall 
-fno-strict-aliasing -I/usr/local/python/dbg/include/python2.6 foo.c 
-ofoo.so
foo.c: In function ‘__pyx_f_3foo_foo’:
foo.c:214: warning: unused variable ‘__pyx_3’
---------------------------------------------------------------------

The conditions under which this code generation problem show up are 
specific to the form of the compound conditional.

Jason
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to