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.
This commit is contained in:
2026-07-20 11:14:30 +02:00
parent a1133ccaf4
commit 0394ac648b
+4 -2
View File
@@ -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;