diff options
author | Guido van Rossum <guido@python.org> | 2007-05-15 20:37:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-15 20:37:11 (GMT) |
commit | 0f0eb0b7fe2d6cddd2b49ba400464240f49d652e (patch) | |
tree | d4fab26802fd4be5bb4153f6d9bbc76b408d08ce /Objects | |
parent | 514a0f2c95a100659ff51a4d084bf22fe3a8564d (diff) | |
download | cpython-0f0eb0b7fe2d6cddd2b49ba400464240f49d652e.zip cpython-0f0eb0b7fe2d6cddd2b49ba400464240f49d652e.tar.gz cpython-0f0eb0b7fe2d6cddd2b49ba400464240f49d652e.tar.bz2 |
Kill two innocuous compiler warnings.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/bufferobject.c | 3 | ||||
-rw-r--r-- | Objects/moduleobject.c | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index f635960..eb02e32 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 82eabf1..f188515 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; |