meta-intel/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Disable-Werror.patch
Anuj Mittal 011b2d6c19 openvino-inference-engine: upgrade 2021.3 -> 2021.4
Refresh patches and add zlib to DEPENDS. Also fetch pybind11 as it's
needed by ngraph.

Release notes:
https://software.intel.com/content/www/us/en/develop/articles/openvino-2021-4-lts-relnotes.html

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-27 09:55:39 +08:00

44 lines
1.4 KiB
Diff

From 1a3f315323a0b1d1affed01e85cbbf0a677718e8 Mon Sep 17 00:00:00 2001
From: Anuj Mittal <anuj.mittal@intel.com>
Date: Wed, 10 Jun 2020 09:45:48 +0800
Subject: [PATCH] Disable Werror
Don't treat warnings as errors. This just leads to failures every time
we upgrade the compiler.
Upstream-Status: Inappropriate
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
inference-engine/thirdparty/clDNN/CMakeLists.txt | 1 -
ngraph/CMakeLists.txt | 1 -
2 files changed, 2 deletions(-)
diff --git a/inference-engine/thirdparty/clDNN/CMakeLists.txt b/inference-engine/thirdparty/clDNN/CMakeLists.txt
index d14da47860..08ed695c0d 100644
--- a/inference-engine/thirdparty/clDNN/CMakeLists.txt
+++ b/inference-engine/thirdparty/clDNN/CMakeLists.txt
@@ -518,7 +518,6 @@ foreach(__CLDNN_CompilerFlagName IN ITEMS "CMAKE_CXX_FLAGS" "CMAKE_C_FLAGS")
MultiProcessorCompilation
DeadCodeEliminate
ExtensionsEnabled
- TreatWarnAsErrorEnabled
WarnLevel4
NoFastMath
StackProtector
diff --git a/ngraph/CMakeLists.txt b/ngraph/CMakeLists.txt
index a05ca3b15c..ae888c4cb2 100644
--- a/ngraph/CMakeLists.txt
+++ b/ngraph/CMakeLists.txt
@@ -197,7 +197,6 @@ if (WIN32)
endif()
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")
endif()
if(WIN32)
--
2.32.0