fix(compress): keep MT frame callback warning-clean

The Rust-owned frame-progression dispatch invokes the existing C MT progression API through a mutable opaque callback context. Match that API's established signature in the adapter so the new boundary does not introduce a discarded-const qualifier warning while preserving the private MT context.

Test Plan:

- git diff --cached --check

- Capped native make rerun pending after this warning-only fix
This commit is contained in:
2026-07-21 08:42:09 +02:00
parent b9f9c16340
commit 6978a373c3
+1 -1
View File
@@ -4442,7 +4442,7 @@ size_t ZSTD_estimateCStreamSize(int compressionLevel)
static ZSTD_frameProgression ZSTD_rust_frameProgression_MT(void* context)
{
#ifdef ZSTD_MULTITHREAD
return ZSTDMT_getFrameProgression((const ZSTDMT_CCtx*)context);
return ZSTDMT_getFrameProgression((ZSTDMT_CCtx*)context);
#else
(void)context;
return (ZSTD_frameProgression){ 0 };