From e89a1d997a533a0a86f48c71a59f1b1a2310dc96 Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Wed, 20 Dec 2023 17:13:36 +0100 Subject: [PATCH] [TOKENIZERS] Disabled C4703 (#796) * disabled error C4703 * Update modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt --------- Co-authored-by: Ilya Lavrenov --- .../user_ie_extensions/tokenizer/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt b/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt index 8689c7a8a..3eefe7f14 100644 --- a/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt +++ b/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt @@ -31,6 +31,11 @@ if(SUGGEST_OVERRIDE_SUPPORTED) set(cxx_flags "${cxx_flags} -Wno-suggest-override") endif() +if(WIN32 AND X86_64) + # disable compiler warning C4703 + set(cxx_flags "${cxx_flags} /wd4703") +endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${cxx_flags} ${c_cxx_flags}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${c_cxx_flags}")