mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Kill two innocuous compiler warnings.
This commit is contained in:
parent
514a0f2c95
commit
0f0eb0b7fe
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue