gh-132983: Fix compiler warning about unused function `mt_continue_should_break()` (#133947)

This commit is contained in:
Erlend E. Aasland 2025-05-12 15:23:40 -04:00 committed by GitHub
parent e8665d4d46
commit 121ed71f4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)