summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cmake/cmake/0001-KWIML-tests-Remove-format-security-from-flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake/0001-KWIML-tests-Remove-format-security-from-flags.patch')
-rw-r--r--meta/recipes-devtools/cmake/cmake/0001-KWIML-tests-Remove-format-security-from-flags.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake/0001-KWIML-tests-Remove-format-security-from-flags.patch b/meta/recipes-devtools/cmake/cmake/0001-KWIML-tests-Remove-format-security-from-flags.patch
new file mode 100644
index 0000000000..190133ba5c
--- /dev/null
+++ b/meta/recipes-devtools/cmake/cmake/0001-KWIML-tests-Remove-format-security-from-flags.patch
@@ -0,0 +1,33 @@
1From 0941395b146804abcd87004589ff6e7a2953412d Mon Sep 17 00:00:00 2001
2From: Jussi Kukkonen <jussi.kukkonen@intel.com>
3Date: Thu, 16 Mar 2017 14:39:04 +0200
4Subject: [PATCH] KWIML tests: Remove format-security from flags
5
6For the tests where "format" is removed from flags, "format-security"
7should be removed as well. Otherwise building cmake with
8"-Wformat -Wformat-security" fails:
9
10| cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
11
12Upstream-Status: Backport [part of commit f77420cfc9]
13Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
14---
15 Utilities/KWIML/test/CMakeLists.txt | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/Utilities/KWIML/test/CMakeLists.txt b/Utilities/KWIML/test/CMakeLists.txt
19index 4f6f37b..1bf93bb 100644
20--- a/Utilities/KWIML/test/CMakeLists.txt
21+++ b/Utilities/KWIML/test/CMakeLists.txt
22@@ -10,7 +10,7 @@ endif()
23 # Suppress printf/scanf format warnings; we test if the sizes match.
24 foreach(lang C CXX)
25 if(KWIML_LANGUAGE_${lang} AND CMAKE_${lang}_COMPILER_ID STREQUAL "GNU")
26- set(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} -Wno-format")
27+ set(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} -Wno-format -Wno-format-security")
28 endif()
29 endforeach()
30
31--
322.1.4
33