From 0eb4dcad8983e611e064da24e39d341c11e112c5 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 15 Oct 2019 10:42:30 +0200 Subject: Fix developer build with -Werror MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The group parameter is only used when cross-compiling, mark it as unused otherwise. This is noticeable in the cmake branch because there we build qmake with cmake and apply the same warning flags, as opposed to the bootstrapped qmake build when using ... qmake. The cache file parameter in qmake is unused and the mustEnsureWritability is only used on Windows. Change-Id: I08655d5150f5a967c2340ee7678bad3a4d69914f Reviewed-by: MÃ¥rten Nordheim --- qmake/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qmake/main.cpp') diff --git a/qmake/main.cpp b/qmake/main.cpp index dd1cca9633..7a2532eb0e 100644 --- a/qmake/main.cpp +++ b/qmake/main.cpp @@ -265,6 +265,8 @@ static bool copyFileTimes(QFile &targetFile, const QString &sourceFilePath, return false; } } +#else + Q_UNUSED(mustEnsureWritability); #endif if (!IoUtils::touchFile(targetFile.fileName(), sourceFilePath, errorString)) return false; -- cgit v1.2.3