diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index aad99c2cd1f..0cd5d708749 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -281,6 +281,7 @@ jobs: -DBUILD_DEV=On \ -DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache \ -DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache \ + -DCMAKE_CXX_FLAGS="-Werror" \ -DGPU_TARGETS=gfx908 \ .. make -j$(nproc) tests driver diff --git a/src/onnx/parse_resize.cpp b/src/onnx/parse_resize.cpp index 13fd4760e22..93ad95bdb27 100644 --- a/src/onnx/parse_resize.cpp +++ b/src/onnx/parse_resize.cpp @@ -320,7 +320,8 @@ struct parse_resize : op_parser // get the number of dimensions std::size_t n_dim = out_lens.size(); - auto vvv_ind = std::vector(n_dim, std::vector(2, std::vector(out_elements))); + std::vector> vv_ind(2, std::vector(out_elements)); + std::vector>> vvv_ind(n_dim, vv_ind); std::vector> delta(n_dim, std::vector(out_elements)); shape_for_each(out_s, [&](const auto& out_idx_v, size_t out_idx) {