diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-12-06 11:54:32 -0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2018-12-20 00:55:36 +0000 |
commit | f2d7b948c11e7dc3e4ea58b4dd5b0b2ebdbe13d0 (patch) | |
tree | d155eb7b6995f3f5335c73a08a7edc1c461cc428 /recipes-qt/qt5/qtconnectivity | |
parent | b8fade938e684a5dda8c978689e914c5d11baf2e (diff) |
qtconnectivity: Ignore -Waddress-of-temporary when using clang
Helps in making bluez detection succeed
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtconnectivity')
-rw-r--r-- | recipes-qt/qt5/qtconnectivity/0001-Ignore-clang-warning-about-address-of-temp-in-config.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtconnectivity/0001-Ignore-clang-warning-about-address-of-temp-in-config.patch b/recipes-qt/qt5/qtconnectivity/0001-Ignore-clang-warning-about-address-of-temp-in-config.patch new file mode 100644 index 00000000..a0c2ee72 --- /dev/null +++ b/recipes-qt/qt5/qtconnectivity/0001-Ignore-clang-warning-about-address-of-temp-in-config.patch @@ -0,0 +1,40 @@ +From 162749d36f4bdea62d456516ae2bbcdc84b9ba87 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Thu, 6 Dec 2018 13:21:23 -0800 +Subject: [PATCH] Ignore clang warning about address of temp in + config.tests/bluez + +There is a similar error with gcc which is suppressed by using +-fpermissive, clang however is more concerned and has specific flag for +it, this flag is not implemented in gcc so we can not use it via general +cmdline options to compiler, so resort to using diagnostic pragma + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + config.tests/bluez/main.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/config.tests/bluez/main.cpp b/config.tests/bluez/main.cpp +index 3fe5ee09..8d1c968a 100644 +--- a/config.tests/bluez/main.cpp ++++ b/config.tests/bluez/main.cpp +@@ -30,11 +30,14 @@ + + int main() + { ++#pragma clang diagnostic push ++#pragma clang diagnostic ignored "-Waddress-of-temporary" + #ifdef BDADDR_NONE + bacmp(BDADDR_ANY, BDADDR_NONE); + #else + bacmp(BDADDR_ANY, BDADDR_LOCAL); + #endif ++#pragma clang diagnostic pop + + return 0; + } +-- +2.19.2 + |