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/tools/wasm2c-wrapper.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/tools/wasm2c-wrapper.h')
-rw-r--r-- | src/tools/wasm2c-wrapper.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/wasm2c-wrapper.h b/src/tools/wasm2c-wrapper.h index f44fc5ca0..984a9b53a 100644 --- a/src/tools/wasm2c-wrapper.h +++ b/src/tools/wasm2c-wrapper.h @@ -203,8 +203,7 @@ int main(int argc, char** argv) { // Emit the parameters (all 0s, like the other wrappers). bool first = true; - for (const auto& param : func->getParams()) { - WASM_UNUSED(param); + for ([[maybe_unused]] const auto& param : func->getParams()) { if (!first) { ret += ", "; } |