]> granicus.if.org Git - python/commitdiff
Kill two innocuous compiler warnings.
authorGuido van Rossum <guido@python.org>
Tue, 15 May 2007 20:37:11 +0000 (20:37 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 15 May 2007 20:37:11 +0000 (20:37 +0000)
Objects/bufferobject.c
Objects/moduleobject.c

index f6359608cb83b7b1cdd067d225a82f9c4acc25a7..eb02e32db494cdc52c1691f651c3efbe98295f7f 100644 (file)
@@ -433,7 +433,8 @@ buffer_concat(PyBufferObject *self, PyObject *other)
 
         if (PyUnicode_Check(other)) {
                /* XXX HACK */
-               if ( (count = (*pb->bf_getcharbuffer)(other, 0, &ptr2)) < 0 )
+               if ( (count = (*pb->bf_getcharbuffer)(other, 0,
+                                                      (char **)&ptr2)) < 0 )
                        return NULL;
        }
        else {
index 82eabf1b56dd270e323c2d08cf7dde8fb0209a66..f1885156ea1ef19e5046235317a316688a2db3c7 100644 (file)
@@ -59,7 +59,6 @@ PyModule_GetName(PyObject *m)
 {
        PyObject *d;
        PyObject *nameobj;
-       char *s;
        if (!PyModule_Check(m)) {
                PyErr_BadArgument();
                return NULL;