]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132983: Fix compiler warning about unused function ``mt_continue_should_break...
authorErlend E. Aasland <erlend@python.org>
Mon, 12 May 2025 19:23:40 +0000 (15:23 -0400)
committerGitHub <noreply@github.com>
Mon, 12 May 2025 19:23:40 +0000 (20:23 +0100)
Modules/_zstd/compressor.c

index f794acbc19cfc70a68195583664f95be11680b81..97693fd043efb20532a0bea77eeac31b77acbd17 100644 (file)
@@ -486,11 +486,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)