From bf31eeeb789572dd919f797b21cbab15758916ff Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 2 Dec 2016 14:22:30 +0100 Subject: Fix warning on Unix Change-Id: Ibe366f16cb3258877ec23eb2aadd139dbda9f47c Reviewed-by: Jake Petroules --- src/lib/corelib/tools/msvcinfo.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/corelib/tools/msvcinfo.cpp') diff --git a/src/lib/corelib/tools/msvcinfo.cpp b/src/lib/corelib/tools/msvcinfo.cpp index 878b0e616..a56f6b0c3 100644 --- a/src/lib/corelib/tools/msvcinfo.cpp +++ b/src/lib/corelib/tools/msvcinfo.cpp @@ -120,10 +120,10 @@ public: const QString filePath; }; +#ifdef Q_OS_WIN static QStringList parseCommandLine(const QString &commandLine) { QStringList list; -#ifdef Q_OS_WIN wchar_t *buf = new wchar_t[commandLine.size() + 1]; buf[commandLine.toWCharArray(buf)] = 0; int argCount = 0; @@ -133,11 +133,9 @@ static QStringList parseCommandLine(const QString &commandLine) for (int i = 0; i < argCount; ++i) list.append(QString::fromWCharArray(args[i])); delete[] buf; -#else - Q_UNUSED(commandLine); -#endif return list; } +#endif static QVariantMap getMsvcDefines(const QString &compilerFilePath, const QProcessEnvironment &compilerEnv) -- cgit v1.2.3