mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Suppress warning on MacOSX about possible use before set of proc.
This commit is contained in:
parent
9af2b44805
commit
9a8ae8f46b
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ get_buf(PyBufferObject *self, void **ptr, Py_ssize_t *size,
|
|||
}
|
||||
else {
|
||||
Py_ssize_t count, offset;
|
||||
readbufferproc proc;
|
||||
readbufferproc proc = 0;
|
||||
PyBufferProcs *bp = self->b_base->ob_type->tp_as_buffer;
|
||||
if ((*bp->bf_getsegcount)(self->b_base, NULL) != 1) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue