From 394b4c9e4994a9bdde89bd09eb0f663da44e0048 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Fri, 7 Oct 2022 20:45:23 +0200 Subject: QDBusMarshaller: ignore false-positive -Wformat-overflow gcc warning Change-Id: Icd5d21ec7ebd16476a1070a18ac618b87575d5f6 Reviewed-by: Thiago Macieira --- src/dbus/qdbusmarshaller.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dbus') diff --git a/src/dbus/qdbusmarshaller.cpp b/src/dbus/qdbusmarshaller.cpp index b3aaff5374..55f474568b 100644 --- a/src/dbus/qdbusmarshaller.cpp +++ b/src/dbus/qdbusmarshaller.cpp @@ -237,8 +237,11 @@ inline QDBusMarshaller *QDBusMarshaller::beginMap(QMetaType kid, QMetaType vid) return this; } if (ksignature[1] != 0 || !QDBusUtil::isValidBasicType(*ksignature)) { +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Wformat-overflow") qWarning("QDBusMarshaller: type '%s' (%d) cannot be used as the key type in a D-BUS map.", kid.name(), kid.id()); +QT_WARNING_POP error("Type %1 passed in arguments cannot be used as a key in a map"_L1 .arg(QLatin1StringView(kid.name()))); return this; -- cgit v1.2.3