@@ -78,7 +78,8 @@ constexpr const char *wasmSectionName = "";
78
78
79
79
#define WASM_SEC_TRANSFORM (section ) \
80
80
template <> \
81
- constexpr const char *wasmSectionName<WasmSectionType::section> = #section;
81
+ [[maybe_unused]] constexpr const char \
82
+ *wasmSectionName<WasmSectionType::section> = #section;
82
83
APPLY_WASM_SEC_TRANSFORM
83
84
#undef WASM_SEC_TRANSFORM
84
85
@@ -93,11 +94,10 @@ struct ByteSequence {};
93
94
template <std::byte Byte>
94
95
struct UniqueByte : ByteSequence<Byte> {};
95
96
96
- constexpr ByteSequence<
97
+ [[maybe_unused]] constexpr ByteSequence<
97
98
WasmBinaryEncoding::Type::i32 , WasmBinaryEncoding::Type::i64 ,
98
99
WasmBinaryEncoding::Type::f32 , WasmBinaryEncoding::Type::f64 ,
99
- WasmBinaryEncoding::Type::v128>
100
- valueTypesEncodings{};
100
+ WasmBinaryEncoding::Type::v128> valueTypesEncodings{};
101
101
102
102
template <std::byte... allowedFlags>
103
103
constexpr bool isValueOneOf (std::byte value,
@@ -289,7 +289,7 @@ class ExpressionParser {
289
289
private:
290
290
std::optional<Location> currentOpLoc;
291
291
ParserHead &parser;
292
- WasmModuleSymbolTables const &symbols;
292
+ [[maybe_unused]] WasmModuleSymbolTables const &symbols;
293
293
locals_t locals;
294
294
ValueStack valueStack;
295
295
};
@@ -732,12 +732,12 @@ inline Type buildLiteralType<int64_t>(OpBuilder &builder) {
732
732
}
733
733
734
734
template <>
735
- inline Type buildLiteralType<uint32_t >(OpBuilder &builder) {
735
+ [[maybe_unused]] inline Type buildLiteralType<uint32_t >(OpBuilder &builder) {
736
736
return builder.getI32Type ();
737
737
}
738
738
739
739
template <>
740
- inline Type buildLiteralType<uint64_t >(OpBuilder &builder) {
740
+ [[maybe_unused]] inline Type buildLiteralType<uint64_t >(OpBuilder &builder) {
741
741
return builder.getI64Type ();
742
742
}
743
743
0 commit comments