diff options
Diffstat (limited to 'src/support/small_vector.h')
-rw-r--r-- | src/support/small_vector.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/support/small_vector.h b/src/support/small_vector.h index 19ceb8697..503dfbd5c 100644 --- a/src/support/small_vector.h +++ b/src/support/small_vector.h @@ -29,7 +29,7 @@ namespace wasm { -// We don't understand this warning, only here and only on aarch64, +// We don't understand this warning, only here and only on aarch64 and riscv64, // we suspect it's spurious so disabling for now. // // For context: https://github.com/WebAssembly/binaryen/issues/6311 @@ -39,6 +39,12 @@ namespace wasm { #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #endif +// https://github.com/WebAssembly/binaryen/issues/6410 +#if defined(__riscv) && __riscv_xlen == 64 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wuninitialized" +#endif + template<typename T, size_t N> class SmallVector { // fixed-space storage size_t usedFixed = 0; @@ -51,6 +57,10 @@ template<typename T, size_t N> class SmallVector { #pragma GCC diagnostic pop #endif +#if defined(__riscv) && __riscv_xlen == 64 +#pragma GCC diagnostic pop +#endif + public: using value_type = T; |