diff --git a/src/test/app/Wasm_test.cpp b/src/test/app/Wasm_test.cpp index 58aa40d5c2..07ee82c2c2 100644 --- a/src/test/app/Wasm_test.cpp +++ b/src/test/app/Wasm_test.cpp @@ -249,7 +249,8 @@ struct Wasm_test : public beast::unit_test::Suite auto imports = ImportVec{}; WasmImpFunc(imports, "func-add", reinterpret_cast(&add), &hfs); - auto _ = vm.run(kWasmModule, hfs, 10'000'000, "finish", wasmParams(), imports, journal); + [[maybe_unused]] auto result = + vm.run(kWasmModule, hfs, 10'000'000, "finish", wasmParams(), imports, journal); auto const logged = sink.messages().str(); BEAST_EXPECT(logged.find("Module version: xrpl-escrow-stdlib 4.5.6") != std::string::npos);