mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
gh-132983: Fix compiler warning about unused function `mt_continue_should_break()` (#133947)
This commit is contained in:
parent
e8665d4d46
commit
121ed71f4e
1 changed files with 2 additions and 0 deletions
|
|
@ -486,11 +486,13 @@ error:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef Py_DEBUG
|
||||||
static inline int
|
static inline int
|
||||||
mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
|
mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
|
||||||
{
|
{
|
||||||
return in->size == in->pos && out->size != out->pos;
|
return in->size == in->pos && out->size != out->pos;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
compress_mt_continue_impl(ZstdCompressor *self, Py_buffer *data)
|
compress_mt_continue_impl(ZstdCompressor *self, Py_buffer *data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue