OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CPU] Remove '-Wno-array-bounds' build flag on gcc-11 and higher (#29825)
Arseniy Obolenskiy2441bafee5bb
diff --git a/src/core/shape_inference/include/gather_nd_shape_inference.hpp b/src/core/shape_inference/include/gather_nd_shape_inference.hppindex 2d11f9f4c8e..1f4e9802728 100644--- a/src/core/shape_inference/include/gather_nd_shape_inference.hpp+++ b/src/core/shape_inference/include/gather_nd_shape_inference.hpp@@ -81,7 +81,7 @@ std::vector<TRShape> shape_infer(const GatherND* op, const std::vector<TShape>&[&output_dims](const DimType& dim) {output_dims[0] *= dim;});- output_dims.insert(output_dims.begin() + 1, output_base_shape.begin() + batch_dims, output_base_shape.end());+ output_dims.insert(output_dims.end(), output_base_shape.begin() + batch_dims, output_base_shape.end());output_shapes[0] = TRShape(std::move(output_dims));}return output_shapes;diff --git a/src/plugins/intel_cpu/CMakeLists.txt b/src/plugins/intel_cpu/CMakeLists.txtindex 30837965d5b..9e6b672bf78 100644--- a/src/plugins/intel_cpu/CMakeLists.txt+++ b/src/plugins/intel_cpu/CMakeLists.txt@@ -24,10 +24,6 @@ elseif(OV_COMPILER_IS_CLANG)else()ov_add_compiler_flags(-Wno-delete-non-virtual-dtor)endif()-elseif(CMAKE_COMPILER_IS_GNUCXX)- if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11)- ov_add_compiler_flags(-Wno-array-bounds)- endif()elseif (OV_COMPILER_IS_INTEL_LLVM AND WIN32)ov_add_compiler_flags("/Wno-microsoft-include")endif()