summaryrefslogtreecommitdiff
path: root/src/support/threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/threads.h')
-rw-r--r--src/support/threads.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/support/threads.h b/src/support/threads.h
index 8a04f78bd..ca13abf4e 100644
--- a/src/support/threads.h
+++ b/src/support/threads.h
@@ -22,6 +22,7 @@
#define wasm_support_threads_h
#include <atomic>
+#include <cassert>
#include <condition_variable>
#include <functional>
#include <memory>
@@ -125,8 +126,7 @@ public:
OnlyOnce() { created.store(0); }
void verify() {
- auto before = created.fetch_add(1);
- WASM_UNUSED(before);
+ [[maybe_unused]] auto before = created.fetch_add(1);
assert(before == 0);
}
};