From a6e35bc72706ca1e6041cee501641da02a7a52e1 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 1 Mar 2017 17:34:28 +0100 Subject: [PATCH] Fix two compiler warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../shared/shared.cpp: In function ‘LibraryInfo parseLddLibraryLine(const QString&, const QString&, const QSet&)’: ../shared/shared.cpp:220:102: warning: unused parameter ‘rpaths’ [-Wunused-parameter] LibraryInfo parseLddLibraryLine(const QString &line, const QString &appDirPath, const QSet &rpaths) ^~~~~~ ../shared/shared.cpp: In function ‘void stripAppBinary(const QString&)’: ../shared/shared.cpp:681:36: warning: unused parameter ‘bundlePath’ [-Wunused-parameter] void stripAppBinary(const QString &bundlePath) ^~~~~~~~~~ --- shared/shared.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/shared.cpp b/shared/shared.cpp index 9cef3e6..ab2062f 100644 --- a/shared/shared.cpp +++ b/shared/shared.cpp @@ -219,6 +219,8 @@ int containsHowOften(QStringList haystack, QString needle) { LibraryInfo parseLddLibraryLine(const QString &line, const QString &appDirPath, const QSet &rpaths) { + (void)rpaths; + if(fhsLikeMode == false){ bundleLibraryDirectory= "lib"; // relative to bundle } else { @@ -680,6 +682,8 @@ void runStrip(const QString &binaryPath) void stripAppBinary(const QString &bundlePath) { + (void)bundlePath; + runStrip(appBinaryPath); }