diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Disable-Werror.patch')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Disable-Werror.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Disable-Werror.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Disable-Werror.patch new file mode 100644 index 00000000..5e7cfb38 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Disable-Werror.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 1a3f315323a0b1d1affed01e85cbbf0a677718e8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 10 Jun 2020 09:45:48 +0800 | ||
4 | Subject: [PATCH] Disable Werror | ||
5 | |||
6 | Don't treat warnings as errors. This just leads to failures every time | ||
7 | we upgrade the compiler. | ||
8 | |||
9 | Upstream-Status: Inappropriate | ||
10 | |||
11 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
12 | --- | ||
13 | inference-engine/thirdparty/clDNN/CMakeLists.txt | 1 - | ||
14 | ngraph/CMakeLists.txt | 1 - | ||
15 | 2 files changed, 2 deletions(-) | ||
16 | |||
17 | diff --git a/inference-engine/thirdparty/clDNN/CMakeLists.txt b/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
18 | index d14da47860..08ed695c0d 100644 | ||
19 | --- a/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
20 | +++ b/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
21 | @@ -518,7 +518,6 @@ foreach(__CLDNN_CompilerFlagName IN ITEMS "CMAKE_CXX_FLAGS" "CMAKE_C_FLAGS") | ||
22 | MultiProcessorCompilation | ||
23 | DeadCodeEliminate | ||
24 | ExtensionsEnabled | ||
25 | - TreatWarnAsErrorEnabled | ||
26 | WarnLevel4 | ||
27 | NoFastMath | ||
28 | StackProtector | ||
29 | diff --git a/ngraph/CMakeLists.txt b/ngraph/CMakeLists.txt | ||
30 | index a05ca3b15c..ae888c4cb2 100644 | ||
31 | --- a/ngraph/CMakeLists.txt | ||
32 | +++ b/ngraph/CMakeLists.txt | ||
33 | @@ -197,7 +197,6 @@ if (WIN32) | ||
34 | endif() | ||
35 | |||
36 | if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") | ||
37 | - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror") | ||
38 | endif() | ||
39 | |||
40 | if(WIN32) | ||
41 | -- | ||
42 | 2.32.0 | ||
43 | |||