diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2016-12-02 14:22:30 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2016-12-02 13:33:39 +0000 |
commit | bf31eeeb789572dd919f797b21cbab15758916ff (patch) | |
tree | 351400bc75a64e07d0035a8070eabf74177130aa | |
parent | d66fe82e645fc42c00c3aef720b22691443764c1 (diff) |
Fix warning on Unix
Change-Id: Ibe366f16cb3258877ec23eb2aadd139dbda9f47c
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
-rw-r--r-- | src/lib/corelib/tools/msvcinfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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) |