https://github.com/python/cpython/commit/c1aa5f82d9442f5a15676e962aba3501951c542e
commit: c1aa5f82d9442f5a15676e962aba3501951c542e
branch: 3.14
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: AA-Turner <9087854+aa-tur...@users.noreply.github.com>
date: 2025-05-12T19:49:44Z
summary:

[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 <erl...@python.org>

files:
M Modules/_zstd/compressor.c

diff --git a/Modules/_zstd/compressor.c b/Modules/_zstd/compressor.c
index 355a27d2734a1b..4f340f56b6fca8 100644
--- a/Modules/_zstd/compressor.c
+++ b/Modules/_zstd/compressor.c
@@ -509,11 +509,13 @@ compress_impl(ZstdCompressor *self, Py_buffer *data,
     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)

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to