On Nov 5, 2008, at 10:37 AM, Lisandro Dalcin wrote:

> I'm working on a patch adding 'const' to 'char *' arguments, and a few
> explicit (char *) casts.
>
> The final idea is that for Py >= 2.5, we can then pass -Wwrite-strings
> to GCC and no warnings should appear. Moreover, perhaps we can make
> 'runtest.py' a bit smarter from pushing the -Wwrite-strings flags for
> Py >=2.5 and GGC.
>
> I did not take the Py2/3/2.4 case just because that would require the
> generated C code to have many explicit, ugly (char *) cast everywhere.
> But if this is not a problem, it could be done in the near future.
>
> Any objections?

This sounds like a good idea. I haven't had the chance to test it on  
Sage, so it didn't make it into the next release which I want to be  
really safe. (Though the patch looks fine.)

- Robert

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

Reply via email to