diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-04-14 07:53:55 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2022-05-10 19:23:39 +0200 |
commit | 79a7b9904984c36e0c7079b6be2cf373fe455467 (patch) | |
tree | b490fc21e672e8e41f6cdbede3a0c082e1930ed3 | |
parent | 5b71df60e523423b9df6793de9387f87a149ac42 (diff) |
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>
-rw-r--r-- | recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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 1f7ec0c8..5d69032e 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 <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 |