Use the GCC pragma on GCC only
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 20 Oct 2011 19:23:32 +0000 (21:23 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Apr 2012 04:00:40 +0000 (06:00 +0200)
Change-Id: I4a0680bddb4d4a73362406ddcd30569ee664d0cc
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/qml/qml/v8/qv8qobjectwrapper.cpp

index d311218..b2a1d25 100644 (file)
@@ -63,7 +63,7 @@ Q_DECLARE_METATYPE(QQmlV8Handle);
 
 QT_BEGIN_NAMESPACE
 
-#if defined(__GNUC__)
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
 # if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405
 // The code in this file does not violate strict aliasing, but GCC thinks it does
 // so turn off the warnings for us to have a clean build