aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authoradridg <adridg@FreeBSD.org>2018-04-08 20:12:24 +0800
committeradridg <adridg@FreeBSD.org>2018-04-08 20:12:24 +0800
commit3bea308f5db9071989b15771ecab0cb979e05d58 (patch)
tree874cf520dbd98f393d948456ef1de1544e520390 /archivers
parente2b045bc84a89d268cc9f2d0e79f9d2dd7728cb3 (diff)
downloadfreebsd-ports-gnome-3bea308f5db9071989b15771ecab0cb979e05d58.tar.gz
freebsd-ports-gnome-3bea308f5db9071989b15771ecab0cb979e05d58.tar.zst
freebsd-ports-gnome-3bea308f5db9071989b15771ecab0cb979e05d58.zip
Fix build of archivers/ark on 10.3 (old clang). Make the return
type of the lambda explicit, to avoid this build error: error: return type 'QString' must match previous return type 'const QString' when lambda expression has unspecified explicit return type return QString(); Reported by: pkg-fallout Approved by: tcberner (mentor, implicit)
Diffstat (limited to 'archivers')
-rw-r--r--archivers/ark/files/patch-kerfuffle_pluginmanager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/archivers/ark/files/patch-kerfuffle_pluginmanager.cpp b/archivers/ark/files/patch-kerfuffle_pluginmanager.cpp
new file mode 100644
index 000000000000..995b135b3d60
--- /dev/null
+++ b/archivers/ark/files/patch-kerfuffle_pluginmanager.cpp
@@ -0,0 +1,11 @@
+--- kerfuffle/pluginmanager.cpp.orig 2018-03-03 22:55:29 UTC
++++ kerfuffle/pluginmanager.cpp
+@@ -258,7 +258,7 @@ QStringList PluginManager::sortByComment
+ bool PluginManager::libarchiveHasLzo()
+ {
+ // Step 1: look for the libarchive plugin, which is built against libarchive.
+- const QString pluginPath = []() {
++ const QString pluginPath = []() -> const QString {
+ foreach (const QString &path, QCoreApplication::libraryPaths()) {
+ const QString pluginPath = QStringLiteral("%1/kerfuffle/kerfuffle_libarchive.so").arg(path);
+ if (QFileInfo::exists(pluginPath)) {