mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +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)) {
|
if (PyUnicode_Check(other)) {
|
||||||
/* XXX HACK */
|
/* XXX HACK */
|
||||||
if ( (count = (*pb->bf_getcharbuffer)(other, 0, &ptr2)) < 0 )
|
if ( (count = (*pb->bf_getcharbuffer)(other, 0,
|
||||||
|
(char **)&ptr2)) < 0 )
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -59,7 +59,6 @@ PyModule_GetName(PyObject *m)
|
||||||
{
|
{
|
||||||
PyObject *d;
|
PyObject *d;
|
||||||
PyObject *nameobj;
|
PyObject *nameobj;
|
||||||
char *s;
|
|
||||||
if (!PyModule_Check(m)) {
|
if (!PyModule_Check(m)) {
|
||||||
PyErr_BadArgument();
|
PyErr_BadArgument();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue