Edgewall Software

Ticket #165: _speedups_no_warnings_x64-r988.diff

File _speedups_no_warnings_x64-r988.diff, 0.9 KB (added by cboos, 3 years ago)

Shun-ichi goto's patch from comment:6 + two more warning suppressed

  • genshi/_speedups.c

     
    4343 
    4444/* Markup class */ 
    4545 
    46 PyAPI_DATA(PyTypeObject) MarkupType; 
     46PyTypeObject MarkupType; 
    4747 
    4848PyDoc_STRVAR(Markup__doc__, 
    4949"Marks a string as being safe for inclusion in HTML/XML output without\n\ 
     
    232232    static char *kwlist[] = {"seq", "escape_quotes", 0}; 
    233233    PyObject *seq = NULL, *seq2, *tmp, *tmp2; 
    234234    char quotes = 1; 
    235     int n, i; 
     235    Py_ssize_t n; 
     236    int i; 
    236237 
    237238    if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|b", kwlist, &seq, &quotes)) { 
    238239        return NULL; 
     
    310311Markup_mod(PyObject *self, PyObject *args) 
    311312{ 
    312313    PyObject *tmp, *tmp2, *ret, *args2; 
    313     int i, nargs = 0; 
     314    int i; 
     315    Py_ssize_t nargs = 0; 
    314316    PyObject *kwds = NULL; 
    315317 
    316318    if (PyDict_Check(args)) {