From 6978a373c322eef60ee06fee4919a013e8d8fe44 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Tue, 21 Jul 2026 08:42:09 +0200 Subject: [PATCH] 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 --- lib/compress/zstd_compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 222d2b40a..ea87b4061 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -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 };