diff options
author | Sam Clegg <sbc@chromium.org> | 2022-12-01 17:27:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 01:27:59 +0000 |
commit | 197b6da7afe6ec317011800abf9453402e6beaa5 (patch) | |
tree | 564ae447dc2af116be8948703da85e8d9198f7c4 /src/ir/memory-utils.h | |
parent | f70bc4d6634c5a0b1aa88f3c073b783e83bb5712 (diff) | |
download | binaryen-197b6da7afe6ec317011800abf9453402e6beaa5.tar.gz binaryen-197b6da7afe6ec317011800abf9453402e6beaa5.tar.bz2 binaryen-197b6da7afe6ec317011800abf9453402e6beaa5.zip |
Use C++17's [[maybe_unused]]. NFC (#5309)
Diffstat (limited to 'src/ir/memory-utils.h')
-rw-r--r-- | src/ir/memory-utils.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ir/memory-utils.h b/src/ir/memory-utils.h index 9bdd00258..f31c55a7d 100644 --- a/src/ir/memory-utils.h +++ b/src/ir/memory-utils.h @@ -92,8 +92,7 @@ inline bool ensureLimitedSegments(Module& module) { // we'll merge constant segments if we must if (numConstant + numDynamic >= WebLimitations::MaxDataSegments) { numConstant = WebLimitations::MaxDataSegments - numDynamic - 1; - auto num = numConstant + numDynamic; - WASM_UNUSED(num); + [[maybe_unused]] auto num = numConstant + numDynamic; assert(num == WebLimitations::MaxDataSegments - 1); } |