From: Guido van Rossum Date: Tue, 15 May 2007 20:37:11 +0000 (+0000) Subject: Kill two innocuous compiler warnings. X-Git-Tag: v3.0a1~950 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f0eb0b7fe2d6cddd2b49ba400464240f49d652e;p=thirdparty%2FPython%2Fcpython.git Kill two innocuous compiler warnings. --- diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index f6359608cb83..eb02e32db494 100644 --- a/Objects/bufferobject.c +++ b/Objects/bufferobject.c @@ -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 { diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index 82eabf1b56dd..f1885156ea1e 100644 --- a/Objects/moduleobject.c +++ b/Objects/moduleobject.c @@ -59,7 +59,6 @@ PyModule_GetName(PyObject *m) { PyObject *d; PyObject *nameobj; - char *s; if (!PyModule_Check(m)) { PyErr_BadArgument(); return NULL;