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 <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Khem Raj
2022-04-14 07:53:55 -07:00
committed by Martin Jansa
parent 5b71df60e5
commit 79a7b99049

View File

@@ -21,7 +21,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
#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