From 88beb89d0bd4d4dfba43c1627a08c17b644b1ee7 Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Wed, 20 Dec 2023 17:08:21 +0100 Subject: [PATCH 1/2] disabled error C4703 --- .../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..c41ad6583 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} /wd44703") +endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${cxx_flags} ${c_cxx_flags}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${c_cxx_flags}") From b5b3d8e728499cd21d7aea5ecb832694fda89fe8 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Wed, 20 Dec 2023 20:12:53 +0400 Subject: [PATCH 2/2] Update modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt --- .../user_ie_extensions/tokenizer/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt b/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt index c41ad6583..3eefe7f14 100644 --- a/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt +++ b/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt @@ -33,7 +33,7 @@ endif() if(WIN32 AND X86_64) # disable compiler warning C4703 - set(cxx_flags "${cxx_flags} /wd44703") + set(cxx_flags "${cxx_flags} /wd4703") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${cxx_flags} ${c_cxx_flags}")