https://github.com/python/cpython/commit/c1aa5f82d9442f5a15676e962aba3501951c542e
commit: c1aa5f82d9442f5a15676e962aba3501951c542e
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: AA-Turner <[email protected]>
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 <[email protected]>

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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to