]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-132983: Fix compiler warning about unused function ``mt_continue_should_bre...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 May 2025 19:49:44 +0000 (21:49 +0200)
committerGitHub <noreply@github.com>
Mon, 12 May 2025 19:49:44 +0000 (19:49 +0000)
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 <erlend@python.org>
Modules/_zstd/compressor.c

index 355a27d2734a1bd3ed97f6a081a6c2c227d7bae3..4f340f56b6fca898e8c8d8eb47e527a77aaceaf1 100644 (file)
@@ -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)