From d6cc3d70585d3f6b7b3aff0dc109e1e97ba3fdbc Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Wed, 8 Nov 2023 12:45:22 +0400 Subject: [PATCH] Disable warnings about API 1.0 in GNA, Python API 1.0 (#20933) --- src/bindings/python/src/compatibility/openvino/CMakeLists.txt | 3 +++ src/plugins/intel_gna/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/bindings/python/src/compatibility/openvino/CMakeLists.txt b/src/bindings/python/src/compatibility/openvino/CMakeLists.txt index e6f7f2aec3b..aa2e7093d41 100644 --- a/src/bindings/python/src/compatibility/openvino/CMakeLists.txt +++ b/src/bindings/python/src/compatibility/openvino/CMakeLists.txt @@ -13,6 +13,9 @@ if(NOT DEFINED OpenVINO_SOURCE_DIR) PATHS "${InferenceEngineDeveloperPackage_DIR}") endif() +# Python API 1.0 will be removed before 2024.0 +ov_disable_deprecated_warnings() + if(UNIX) # cython generated files requires public visibility. Force visibility required. set(CMAKE_CXX_VISIBILITY_PRESET default) diff --git a/src/plugins/intel_gna/CMakeLists.txt b/src/plugins/intel_gna/CMakeLists.txt index 107ea8a5a0c..ecb94ece6b3 100644 --- a/src/plugins/intel_gna/CMakeLists.txt +++ b/src/plugins/intel_gna/CMakeLists.txt @@ -6,6 +6,9 @@ if (NOT ENABLE_INTEL_GNA) return() endif() +# GNA plugin will be removed before 2024.0 together with API 1.0 +ov_disable_deprecated_warnings() + add_subdirectory(legacy) set(TARGET_NAME "openvino_intel_gna_plugin")