From 749291ebb786eeb76eb1362d47c96d9f848a7d36 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Wed, 12 Nov 2025 14:12:55 +0300 Subject: [PATCH] Fixed unrichable code with MSVC on x86 32-bit systems. --- modules/gapi/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/gapi/CMakeLists.txt b/modules/gapi/CMakeLists.txt index 67545dda90..98f225caef 100644 --- a/modules/gapi/CMakeLists.txt +++ b/modules/gapi/CMakeLists.txt @@ -41,9 +41,7 @@ if(MSVC) # and IE deprecated code warning C4996 ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4503 /wd4996) endif() - if((MSVC_VERSION LESS 1920) OR ARM OR AARCH64) # MSVS 2015/2017 on x86 and ARM - ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4702) # 'unreachable code' - endif() + ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4702) # MSVS 2015/2017/2019 on x86 and ARM endif() file(GLOB gapi_ext_hdrs