aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase/0010-tst_qstring-Disable-Wformat-security-with-clang-as-w.patch
blob: 77b357cb34c9a353b8b288af70077f68f359234a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 8284ebfe59c0011db71df7fb143b8e6a99f6952e Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 25 Jul 2017 19:40:52 -0700
Subject: [PATCH 10/10] tst_qstring: Disable Wformat-security with clang as
 well

Currently, its only disabled for gcc, but we need to disable
it with clang as well in order to compile it successfully with
clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 tests/auto/corelib/tools/qstring/tst_qstring.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/auto/corelib/tools/qstring/tst_qstring.cpp b/tests/auto/corelib/tools/qstring/tst_qstring.cpp
index a0a872710c..20a9a9f9db 100644
--- a/tests/auto/corelib/tools/qstring/tst_qstring.cpp
+++ b/tests/auto/corelib/tools/qstring/tst_qstring.cpp
@@ -1066,6 +1066,9 @@ void tst_QString::acc_01()
 
 QT_WARNING_PUSH
 QT_WARNING_DISABLE_GCC("-Wformat-security")
+#ifdef __clang__
+QT_WARNING_DISABLE_CLANG("-Wformat-security")
+#endif
 
 void tst_QString::isNull()
 {
-- 
2.13.3