Skip to content

Commit 121ed71

Browse files
gh-132983: Fix compiler warning about unused function mt_continue_should_break() (#133947)
1 parent e8665d4 commit 121ed71

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
@@ -486,11 +486,13 @@ compress_impl(ZstdCompressor *self, Py_buffer *data,
486486
return NULL;
487487
}
488488

489+
#ifdef Py_DEBUG
489490
static inline int
490491
mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
491492
{
492493
return in->size == in->pos && out->size != out->pos;
493494
}
495+
#endif
494496

495497
static PyObject *
496498
compress_mt_continue_impl(ZstdCompressor *self, Py_buffer *data)

0 commit comments

Comments
 (0)