From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 12 May 2025 19:49:44 +0000 (+0200) Subject: [3.14] gh-132983: Fix compiler warning about unused function ``mt_continue_should_bre... X-Git-Tag: v3.14.0b2~165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1aa5f82d9442f5a15676e962aba3501951c542e;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-132983: Fix compiler warning about unused function ``mt_continue_should_break()`` (GH-133947) (#133950) gh-132983: Fix compiler warning about unused function ``mt_continue_should_break()`` (GH-133947) (cherry picked from commit 121ed71f4e395948d313249b2ad33e1e21581f8a) Co-authored-by: Erlend E. Aasland --- diff --git a/Modules/_zstd/compressor.c b/Modules/_zstd/compressor.c index 355a27d2734a..4f340f56b6fc 100644 --- a/Modules/_zstd/compressor.c +++ b/Modules/_zstd/compressor.c @@ -509,11 +509,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)