From 0394ac648b94d5d9784c8eeed26cc7d298a39fc4 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Mon, 20 Jul 2026 11:14:30 +0200 Subject: [PATCH] fix(cli): preserve C90 declaration order Keep the local buffer variables declared before the direct Rust buffer-policy calls in the compression stream adapter, preserving the native C90 warning profile after removing the old C forwarding helper. Test Plan: `ulimit -v 41943040; make -j1 -C tests test` passed before this declaration-only cleanup; the next capped native gate will recheck it. --- programs/fileio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/fileio.c b/programs/fileio.c index d0804a361..01126c113 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -2535,10 +2535,12 @@ static int FIO_rust_zstd_compressStream( (FIO_rust_zstd_projection_context_t*)opaque; ZSTD_inBuffer inBuff; ZSTD_outBuffer outBuff; + size_t toFlush; + size_t result; FIO_setInBuffer(&inBuff, input, inputSize, inputPos); FIO_setOutBuffer(&outBuff, output, outputSize, 0); - size_t const toFlush = ZSTD_toFlushNow(context->cctx); - size_t const result = ZSTD_compressStream2( + toFlush = ZSTD_toFlushNow(context->cctx); + result = ZSTD_compressStream2( context->cctx, &outBuff, &inBuff, (ZSTD_EndDirective)directive); *inputPosAfter = inBuff.pos;