From 197b6da7afe6ec317011800abf9453402e6beaa5 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 1 Dec 2022 17:27:59 -0800 Subject: Use C++17's [[maybe_unused]]. NFC (#5309) --- src/compiler-support.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/compiler-support.h') diff --git a/src/compiler-support.h b/src/compiler-support.h index eddb2d7f0..a34859190 100644 --- a/src/compiler-support.h +++ b/src/compiler-support.h @@ -31,14 +31,4 @@ #define WASM_BUILTIN_UNREACHABLE __assume(false) #endif -// The code might contain TODOs or stubs that read some values but do nothing -// with them. The compiler might fail with [-Werror,-Wunused-variable]. -// The WASM_UNUSED(varible) is a wrapper that helps to suppress the error. -#define WASM_UNUSED(expr) \ - do { \ - if (sizeof expr) { \ - (void)0; \ - } \ - } while (0) - #endif // wasm_compiler_support_h -- cgit v1.2.3