https://github.com/python/cpython/commit/121ed71f4e395948d313249b2ad33e1e21581f8a
commit: 121ed71f4e395948d313249b2ad33e1e21581f8a
branch: main
author: Erlend E. Aasland <[email protected]>
committer: AA-Turner <[email protected]>
date: 2025-05-12T20:23:40+01:00
summary:
gh-132983: Fix compiler warning about unused function
``mt_continue_should_break()`` (#133947)
files:
M Modules/_zstd/compressor.c
diff --git a/Modules/_zstd/compressor.c b/Modules/_zstd/compressor.c
index f794acbc19cfc7..97693fd043efb2 100644
--- a/Modules/_zstd/compressor.c
+++ b/Modules/_zstd/compressor.c
@@ -486,11 +486,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]