OK, now I'm building my own projects with -Wwrite-strings. As warnings appear, I'll be pushing fixes.
On Thu, Nov 6, 2008 at 10:11 PM, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > 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 > -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
