summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/upm
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/upm')
-rw-r--r--meta-oe/recipes-extended/upm/upm/0001-cmake-Disable-Wno-misleading-indentation-with-clang-.patch33
-rw-r--r--meta-oe/recipes-extended/upm/upm_git.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/upm/upm/0001-cmake-Disable-Wno-misleading-indentation-with-clang-.patch b/meta-oe/recipes-extended/upm/upm/0001-cmake-Disable-Wno-misleading-indentation-with-clang-.patch
new file mode 100644
index 000000000..68b73bc2c
--- /dev/null
+++ b/meta-oe/recipes-extended/upm/upm/0001-cmake-Disable-Wno-misleading-indentation-with-clang-.patch
@@ -0,0 +1,33 @@
1From d41e2bef1c39dcbc4896b1dd7ab168da530672b5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 30 Dec 2019 13:33:39 -0800
4Subject: [PATCH] cmake: Disable -Wno-misleading-indentation with clang-10 onwards
5
6clang also introduced this warning now
7
8Upstream-Status: Submitted [https://github.com/eclipse/upm/pull/693]
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 CMakeLists.txt | 5 +++++
13 1 file changed, 5 insertions(+)
14
15diff --git a/CMakeLists.txt b/CMakeLists.txt
16index 069e4902..47c7f4c3 100644
17--- a/CMakeLists.txt
18+++ b/CMakeLists.txt
19@@ -99,6 +99,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_
20 list (APPEND C_CXX_WARNING_FLAGS -Wno-misleading-indentation)
21 endif ()
22
23+# clang-10 added -Wmisleading-indentation as well, skipp it too
24+if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9")
25+ list (APPEND C_CXX_WARNING_FLAGS -Wno-misleading-indentation)
26+endif ()
27+
28 # Warnings as errors?
29 if (WERROR)
30 list (APPEND C_CXX_WARNING_FLAGS -Werror)
31--
322.24.1
33
diff --git a/meta-oe/recipes-extended/upm/upm_git.bb b/meta-oe/recipes-extended/upm/upm_git.bb
index 7564738dd..6db8f8825 100644
--- a/meta-oe/recipes-extended/upm/upm_git.bb
+++ b/meta-oe/recipes-extended/upm/upm_git.bb
@@ -14,6 +14,7 @@ SRC_URI = "git://github.com/intel-iot-devkit/${BPN}.git;protocol=http \
14 file://0001-CMakeLists.txt-Use-SWIG_SUPPORT_FILES-to-find-the-li.patch \ 14 file://0001-CMakeLists.txt-Use-SWIG_SUPPORT_FILES-to-find-the-li.patch \
15 file://0001-Use-stdint-types.patch \ 15 file://0001-Use-stdint-types.patch \
16 file://0001-initialize-local-variables-before-use.patch \ 16 file://0001-initialize-local-variables-before-use.patch \
17 file://0001-cmake-Disable-Wno-misleading-indentation-with-clang-.patch \
17 " 18 "
18 19
19SRC_URI_append_toolchain-clang_x86 = " file://0001-nmea_gps-Link-with-latomic.patch " 20SRC_URI_append_toolchain-clang_x86 = " file://0001-nmea_gps-Link-with-latomic.patch "