mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-09-16 12:12:07 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user