Skip to content

Commit 2bd08ab

Browse files
authored
Merge pull request #830 from wasmx/noexcept
test: Mark env_adler32 noexcept
2 parents 3581284 + a085fc3 commit 2bd08ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/utils/wabt_engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ bool WabtEngine::instantiate(bytes_view wasm_binary)
6666
const auto host_func = wabt::interp::HostFunc::New(m_store,
6767
wabt::interp::FuncType{{wabt::Type::I32, wabt::Type::I32}, {wabt::Type::I32}},
6868
[](wabt::interp::Thread& thread, const wabt::interp::Values& args,
69-
wabt::interp::Values& results, wabt::interp::Trap::Ptr*) -> wabt::Result {
69+
wabt::interp::Values& results, wabt::interp::Trap::Ptr*) noexcept -> wabt::Result {
7070
assert(args.size() == 2);
7171
const auto offset = args[0].i32_;
7272
const auto length = args[1].i32_;

test/utils/wasm3_engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Wasm3Engine final : public WasmEngine
3838

3939
namespace
4040
{
41-
const void* env_adler32(IM3Runtime /*runtime*/, uint64_t* stack, void* mem)
41+
const void* env_adler32(IM3Runtime /*runtime*/, uint64_t* stack, void* mem) noexcept
4242
{
4343
const uint32_t offset = static_cast<uint32_t>(stack[0]);
4444
const uint32_t length = static_cast<uint32_t>(stack[1]);

0 commit comments

Comments
 (0)