aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-10-06 15:56:16 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-10-07 09:28:18 +0000
commit45e13b1127b6c765b9f6fd3db5f5708dd972af13 (patch)
treea3081e552f10a220e3cf58e6c808a76cc978f51f /sources
parent9a045f536f283b9bbf66a2bf578589177bbe03e5 (diff)
shiboken: Add -Wno-microsoft-enum-value for MSVC
Silence numerous warnings: warning: enumerator value is not representable in the underlying type 'int' Change-Id: I82b4547c1392e1d65515e0bd51d5d76bac185a9e Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources')
-rw-r--r--sources/shiboken2/ApiExtractor/clangparser/compilersupport.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/clangparser/compilersupport.cpp b/sources/shiboken2/ApiExtractor/clangparser/compilersupport.cpp
index d2e64458b..9bdb8a40a 100644
--- a/sources/shiboken2/ApiExtractor/clangparser/compilersupport.cpp
+++ b/sources/shiboken2/ApiExtractor/clangparser/compilersupport.cpp
@@ -138,6 +138,7 @@ QByteArrayList emulatedCompilerOptions()
#if defined(Q_CC_MSVC)
const HeaderPaths headerPaths;
result.append(QByteArrayLiteral("-fms-compatibility-version=19"));
+ result.append(QByteArrayLiteral("-Wno-microsoft-enum-value"));
#elif defined(Q_CC_CLANG)
const HeaderPaths headerPaths = gppInternalIncludePaths(QStringLiteral("clang++"));
result.append(noStandardIncludeOption());