mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-01 13:58:07 +00:00
qtgrpc: add patch for build issue
Add (upstream pending) patch to fix build issue in the module: "error: format not a string literal and no format arguments [-Werror=format-security] | 194 | QTest::addRow(rus.id().constData())" Change-Id: I4cedc32cca000fc217e88a8a832c258e60a0cb4f Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
This commit is contained in:
parent
c12a762bfe
commit
0300ccc33f
|
|
@ -0,0 +1,32 @@
|
|||
From 60208ed28c117f1d197bc3a27968267fdcfc088f Mon Sep 17 00:00:00 2001
|
||||
From: Tatiana Borisova <tatiana.borisova@qt.io>
|
||||
Date: Fri, 5 May 2023 11:18:31 +0200
|
||||
Subject: [PATCH] Fix warning that leads to yocto build issue
|
||||
|
||||
Fixes: QTBUG-113409
|
||||
Change-Id: I28acf12c37bd6baaac4a327c557adb6329b3a6ed
|
||||
---
|
||||
tests/auto/protobufqttypes/qtprotobufqttypescoretest.cpp | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/auto/protobufqttypes/qtprotobufqttypescoretest.cpp b/tests/auto/protobufqttypes/qtprotobufqttypescoretest.cpp
|
||||
index 3532f32..965eca2 100644
|
||||
--- a/tests/auto/protobufqttypes/qtprotobufqttypescoretest.cpp
|
||||
+++ b/tests/auto/protobufqttypes/qtprotobufqttypescoretest.cpp
|
||||
@@ -191,14 +191,14 @@ void QtProtobufQtTypesQtCoreTest::qDateTime_data()
|
||||
QTest::addColumn<bool>("isValid");
|
||||
#if QT_CONFIG(timezone)
|
||||
if (QTimeZone rus("Asia/Magadan"); rus.isValid()) {
|
||||
- QTest::addRow(rus.id().constData())
|
||||
+ QTest::addRow("Asia/Magadan")
|
||||
<< rus
|
||||
<< QDate(2011, 3, 14)
|
||||
<< QByteArray("0a1708d191a687eb25120e120c417369612f4d61676164616e")
|
||||
<< true;
|
||||
}
|
||||
if (QTimeZone oz("Australia/Darwin"); oz.isValid()) {
|
||||
- QTest::addRow(oz.id().constData())
|
||||
+ QTest::addRow("Australia/Darwin")
|
||||
<< oz
|
||||
<< QDate(2011, 3, 14)
|
||||
<< QByteArray("0a1b0891ddef89eb25121212104175737472616c69612f44617277696e")
|
||||
|
|
@ -13,6 +13,10 @@ inherit qt6-cmake
|
|||
include recipes-qt/qt6/qt6-git.inc
|
||||
include recipes-qt/qt6/qt6.inc
|
||||
|
||||
SRC_URI += "\
|
||||
file://0001-Fix-warning-that-leads-to-yocto-build-issue.patch \
|
||||
"
|
||||
|
||||
DEPENDS += "qtbase qtgrpc-native protobuf protobuf-native"
|
||||
|
||||
PACKAGECONFIG[examples] = "-DQT_BUILD_EXAMPLES=ON,-DQT_BUILD_EXAMPLES=OFF,qtdeclarative qtdeclarative-native"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user