diff --git a/src/bindings/c/src/CMakeLists.txt b/src/bindings/c/src/CMakeLists.txt index a6a649ada6e..edc29574fe1 100644 --- a/src/bindings/c/src/CMakeLists.txt +++ b/src/bindings/c/src/CMakeLists.txt @@ -5,7 +5,8 @@ set(TARGET_NAME openvino_c) # Suppress warnings due to catch macro with legacy exception types -ov_deprecated_no_errors() +ov_disable_deprecated_warnings() + add_definitions(-DIN_OV_COMPONENT) file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.h ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) diff --git a/src/common/preprocessing/tests/CMakeLists.txt b/src/common/preprocessing/tests/CMakeLists.txt index 9518b6f3e41..f3a754e7673 100644 --- a/src/common/preprocessing/tests/CMakeLists.txt +++ b/src/common/preprocessing/tests/CMakeLists.txt @@ -4,7 +4,7 @@ set(TARGET fluid_preproc_tests) -ov_deprecated_no_errors() +ov_disable_deprecated_warnings() find_package(OpenCV QUIET COMPONENTS gapi core imgproc) if(NOT OpenCV_FOUND OR NOT OpenCV_VERSION VERSION_GREATER_EQUAL 4) diff --git a/src/core/src/type.cpp b/src/core/src/type.cpp index 7d6aef2c46b..c75d9a7476d 100644 --- a/src/core/src/type.cpp +++ b/src/core/src/type.cpp @@ -37,7 +37,7 @@ std::string DiscreteTypeInfo::get_version() const { if (version_id) { return std::string(version_id); } - return nullptr; + return {}; } DiscreteTypeInfo::operator std::string() const { diff --git a/src/frontends/onnx/frontend/src/ops_bridge.hpp b/src/frontends/onnx/frontend/src/ops_bridge.hpp index bbd6bfd129c..4e2d2edb2b5 100644 --- a/src/frontends/onnx/frontend/src/ops_bridge.hpp +++ b/src/frontends/onnx/frontend/src/ops_bridge.hpp @@ -5,6 +5,7 @@ #pragma once #include +#include #include #include #include diff --git a/src/inference/src/dev/make_tensor.cpp b/src/inference/src/dev/make_tensor.cpp index 2c0f33b352b..3a646789f4c 100644 --- a/src/inference/src/dev/make_tensor.cpp +++ b/src/inference/src/dev/make_tensor.cpp @@ -397,7 +397,7 @@ public: } void allocate() noexcept override { - if (InferenceEngine::TBlob::buffer() != tensor->data()) { + if ((void*)InferenceEngine::TBlob::buffer() != tensor->data()) { InferenceEngine::TBlob::_allocator = InferenceEngine::details::make_pre_allocator(static_cast(tensor->data()), tensor->get_byte_size()); InferenceEngine::TBlob::allocate();