summaryrefslogtreecommitdiff
path: root/user/qca/gcc11.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-05-28 13:36:51 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-07 09:58:04 -0500
commitf0fcf45bd1f9b32866f55b844dfc9482b31d2560 (patch)
treeaa77aabfd12d3838d17bc06fd6a32b6407059ed1 /user/qca/gcc11.patch
parentf56ec0f591381c50d35940a4c3a6af71b93dbca4 (diff)
downloadpackages-f0fcf45bd1f9b32866f55b844dfc9482b31d2560.tar.gz
packages-f0fcf45bd1f9b32866f55b844dfc9482b31d2560.tar.bz2
packages-f0fcf45bd1f9b32866f55b844dfc9482b31d2560.tar.xz
packages-f0fcf45bd1f9b32866f55b844dfc9482b31d2560.zip
user/qca: Update for GCC 11+
Diffstat (limited to 'user/qca/gcc11.patch')
-rw-r--r--user/qca/gcc11.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/user/qca/gcc11.patch b/user/qca/gcc11.patch
new file mode 100644
index 000000000..4fc43d818
--- /dev/null
+++ b/user/qca/gcc11.patch
@@ -0,0 +1,26 @@
+From 32275f1a74c161d2fed8c056b2dd9555687a22f2 Mon Sep 17 00:00:00 2001
+From: Albert Astals Cid <aacid@kde.org>
+Date: Sun, 24 Jan 2021 18:43:39 +0100
+Subject: [PATCH] Move moc include outside the QCA namespace
+
+It's the right thing to do and also fixes build with gcc 11
+---
+ src/qca_default.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/qca_default.cpp b/src/qca_default.cpp
+index 7c2a8f89..e31ce3e1 100644
+--- a/src/qca_default.cpp
++++ b/src/qca_default.cpp
+@@ -1358,6 +1358,6 @@ QStringList plugin_priorities(Provider *defaultProvider)
+ return that->shared.plugin_priorities();
+ }
+
+-#include "qca_default.moc"
+-
+ }
++
++#include "qca_default.moc"
+--
+GitLab
+