8000 [3.14] gh-132983: Fix compiler warning about unused function ``mt_con… · python/cpython@c1aa5f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit c1aa5f8

Browse files
[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 121ed71) Co-authored-by: Erlend E. Aasland <erlend@python.org>
1 parent 5ba525c commit c1aa5f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/_zstd/compressor.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,11 +509,13 @@ compress_impl(ZstdCompressor *self, Py_buffer *data,
509509
return NULL;
510510
}
511511

512+
#ifdef Py_DEBUG
512513
static inline int
513514
mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
514515
{
515516
return in->size == in->pos && out->size != out->pos;
516517
}
518+
#endif
517519

518520
static PyObject *
519521
compress_mt_continue_impl(ZstdCompressor *self, Py_buffer *data)

0 commit comments

Comments
 (0)
0