diff --git a/src/support/small_vector.h b/src/support/small_vector.h index dd037055459..efd866cb550 100644 --- a/src/support/small_vector.h +++ b/src/support/small_vector.h @@ -53,14 +53,6 @@ template class SmallVector { // flexible additional storage std::vector flexible; -#if defined(__aarch64__) -#pragma GCC diagnostic pop -#endif - -#if defined(__riscv) && __riscv_xlen == 64 -#pragma GCC diagnostic pop -#endif - public: using value_type = T; @@ -286,6 +278,14 @@ struct ZeroInitSmallVector : public SmallVector { } }; +#if defined(__aarch64__) +#pragma GCC diagnostic pop +#endif + +#if defined(__riscv) && __riscv_xlen == 64 +#pragma GCC diagnostic pop +#endif + } // namespace wasm #endif // wasm_support_small_vector_h