From: Erlend E. Aasland Date: Mon, 12 May 2025 19:23:40 +0000 (-0400) Subject: gh-132983: Fix compiler warning about unused function ``mt_continue_should_break... X-Git-Tag: v3.15.0a1~1741 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=121ed71f4e395948d313249b2ad33e1e21581f8a;p=thirdparty%2FPython%2Fcpython.git gh-132983: Fix compiler warning about unused function ``mt_continue_should_break()`` (#133947) --- diff --git a/Modules/_zstd/compressor.c b/Modules/_zstd/compressor.c index f794acbc19cf..97693fd043ef 100644 --- a/Modules/_zstd/compressor.c +++ b/Modules/_zstd/compressor.c @@ -486,11 +486,13 @@ error: return NULL; } +#ifdef Py_DEBUG static inline int mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out) { return in->size == in->pos && out->size != out->pos; } +#endif static PyObject * compress_mt_continue_impl(ZstdCompressor *self, Py_buffer *data)