diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-07-26 11:55:40 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-08-08 20:44:41 +0200 |
commit | 904296915495f7f606f5a07cb444d76903093ca0 (patch) | |
tree | a544b4a64761e19d60c9e44603fb1906d9f1e9be /recipes-qt/qt5/qtbase | |
parent | d53382fcb332846194080d8772d6069770ffae69 (diff) | |
download | meta-qt5-904296915495f7f606f5a07cb444d76903093ca0.tar.gz |
qtbase: Fix ptests with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtbase')
-rw-r--r-- | recipes-qt/qt5/qtbase/0010-tst_qstring-Disable-Wformat-security-with-clang-as-w.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase/0010-tst_qstring-Disable-Wformat-security-with-clang-as-w.patch b/recipes-qt/qt5/qtbase/0010-tst_qstring-Disable-Wformat-security-with-clang-as-w.patch new file mode 100644 index 00000000..77b357cb --- /dev/null +++ b/recipes-qt/qt5/qtbase/0010-tst_qstring-Disable-Wformat-security-with-clang-as-w.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 8284ebfe59c0011db71df7fb143b8e6a99f6952e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 25 Jul 2017 19:40:52 -0700 | ||
4 | Subject: [PATCH 10/10] tst_qstring: Disable Wformat-security with clang as | ||
5 | well | ||
6 | |||
7 | Currently, its only disabled for gcc, but we need to disable | ||
8 | it with clang as well in order to compile it successfully with | ||
9 | clang | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | tests/auto/corelib/tools/qstring/tst_qstring.cpp | 3 +++ | ||
14 | 1 file changed, 3 insertions(+) | ||
15 | |||
16 | diff --git a/tests/auto/corelib/tools/qstring/tst_qstring.cpp b/tests/auto/corelib/tools/qstring/tst_qstring.cpp | ||
17 | index a0a872710c..20a9a9f9db 100644 | ||
18 | --- a/tests/auto/corelib/tools/qstring/tst_qstring.cpp | ||
19 | +++ b/tests/auto/corelib/tools/qstring/tst_qstring.cpp | ||
20 | @@ -1066,6 +1066,9 @@ void tst_QString::acc_01() | ||
21 | |||
22 | QT_WARNING_PUSH | ||
23 | QT_WARNING_DISABLE_GCC("-Wformat-security") | ||
24 | +#ifdef __clang__ | ||
25 | +QT_WARNING_DISABLE_CLANG("-Wformat-security") | ||
26 | +#endif | ||
27 | |||
28 | void tst_QString::isNull() | ||
29 | { | ||
30 | -- | ||
31 | 2.13.3 | ||
32 | |||