diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2022-10-07 20:45:23 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2022-10-08 16:51:14 +0200 |
commit | 394b4c9e4994a9bdde89bd09eb0f663da44e0048 (patch) | |
tree | b996eed3a757f15dacd739bb3a63d8d7e818df2d /src/dbus | |
parent | 3cd9536b7f6224b1c8fea2e40afdb5fe7b441f82 (diff) |
QDBusMarshaller: ignore false-positive -Wformat-overflow gcc warning
Change-Id: Icd5d21ec7ebd16476a1070a18ac618b87575d5f6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/dbus')
-rw-r--r-- | src/dbus/qdbusmarshaller.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |