windeployqt: Enable module enumeration type for all MSVC.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Fri, 21 Feb 2014 09:26:07 +0000 (10:26 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 21 Feb 2014 10:55:13 +0000 (11:55 +0100)
The feature is present in MSVC 2008 onwards. Fixes warnings when
compiling with 32bit:

main.cpp(97) : warning C4341: 'QtWebKitWidgetsModule' : signed value is out of range for enum constant

Change-Id: I955c5c9f1ed6f1e94c95294e191cc36c5b668391
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
src/windeployqt/main.cpp

index f157368..c71822c 100644 (file)
@@ -57,7 +57,7 @@
 QT_BEGIN_NAMESPACE
 
 enum QtModule
-#ifdef Q_COMPILER_CLASS_ENUM
+#if defined(Q_COMPILER_CLASS_ENUM) || defined(Q_CC_MSVC)
     : quint64
 #endif
 {