From 79a7b9904984c36e0c7079b6be2cf373fe455467 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 14 Apr 2022 07:53:55 -0700 Subject: [PATCH] libconnman-qt5: Apply operator patch also for gcc-12 gcc12 has started to fail with same error like clang, perhaps this should be upstreamed too usr/include/QtDBus/qdbusargument.h:276:13: error: no match for 'operator>>' (operand types are 'const QDBusArgument' and 'RouteStructure') | 276 | arg >> item; | | ~~~~^~~~~~~ Signed-off-by: Khem Raj Signed-off-by: Martin Jansa --- .../0001-Add-missing-declarations-for-operator-overloads.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch index 1f7ec0c..5d69032 100644 --- a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch +++ b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch @@ -21,7 +21,7 @@ Signed-off-by: Khem Raj #include "marshalutils.h" -+#if defined(__clang__) && __clang_major__ >= 11 ++#if defined(__clang__) && __clang_major__ >= 11 || __GNUC__ >= 12 +Q_DBUS_EXPORT const QDBusArgument &operator>>(const QDBusArgument &a, RouteStructure &v); +Q_DBUS_EXPORT QDBusArgument &operator<<(QDBusArgument &a, const RouteStructure &v); +#endif