From 45e13b1127b6c765b9f6fd3db5f5708dd972af13 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 6 Oct 2017 15:56:16 +0200 Subject: 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 --- sources/shiboken2/ApiExtractor/clangparser/compilersupport.cpp | 1 + 1 file changed, 1 insertion(+) 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()); -- cgit v1.2.3