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/iteration.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/iteration.h')
-rw-r--r-- | src/ir/iteration.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ir/iteration.h b/src/ir/iteration.h index a2c9ceef6..8da03a555 100644 --- a/src/ir/iteration.h +++ b/src/ir/iteration.h @@ -84,9 +84,7 @@ public: #define DELEGATE_ID parent->_id -#define DELEGATE_START(id) \ - auto* cast = parent->cast<id>(); \ - WASM_UNUSED(cast); +#define DELEGATE_START(id) [[maybe_unused]] auto* cast = parent->cast<id>(); #define DELEGATE_GET_FIELD(id, field) cast->field |