Commit 0f0eb0b7 authored by Guido van Rossum's avatar Guido van Rossum

Kill two innocuous compiler warnings.

parent 514a0f2c
......@@ -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 {
......
......@@ -59,7 +59,6 @@ PyModule_GetName(PyObject *m)
{
PyObject *d;
PyObject *nameobj;
char *s;
if (!PyModule_Check(m)) {
PyErr_BadArgument();
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment