On Oct 24, 2009, at 12:24 PM, Lisandro Dalcin wrote:

> Just tested in Win32 with MSVC, a few warnings here and there, mosty
> related to loss of precision on numeric conversions (eg. int <->
> float)
>
> However, two things to point out:
>
> 1) tests\compile\cstructreturn.pyx is clearly wrong code, and the
> compiler warned about uninitialized return. This makes me think that
> perhaps Cython should at least emit a warning if in a cdef function
> with explicit return type you never "return something"...

Until we have correct control flow, I don't think we can even  
accurately detect this.

> Should I fix the test to silent the warning?

Yes, please do. That test is obviously wrong.

> 2) refnany + profile code fails to compile, because the refnnany setup
> code in functions should be emmited BEFORE the trace call (in order to
> do not mix variable declarations and code)... If any of you have a few
> minutes to fix this, It would be great.

The profile (may) declare some variable as well... Perhaps we need to  
split it up into two macros.

- Robert


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

Reply via email to