Fix compiler warnings from MSVC2010
authorKai Koehne <kai.koehne@nokia.com>
Tue, 28 Aug 2012 14:49:37 +0000 (16:49 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Aug 2012 16:11:54 +0000 (18:11 +0200)
Change-Id: I44eb0113374c221a166609c4fd29b5dad05ecc94
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/qml/qml/v4/qv4bindings.cpp
src/quick/items/qquickitem.cpp
src/quick/util/qquickglobal.cpp

index 68e9a1a..2ad69de 100644 (file)
 
 Q_DECLARE_METATYPE(QJSValue)
 
+#ifdef Q_CC_MSVC
+// MSVC2010 warns about 'unreferenced formal parameter', even if it's used in p->~T()
+#  pragma warning( disable : 4100 )
+#endif
+
 QT_BEGIN_NAMESPACE
 
 using namespace QQmlJS;
index 1bea8a8..7618c2f 100644 (file)
@@ -3099,7 +3099,7 @@ void QQuickItem::inputMethodEvent(QInputMethodEvent *event)
     events for an item. The event information is provided by the
     \a event parameter.
   */
-void QQuickItem::focusInEvent(QFocusEvent *event)
+void QQuickItem::focusInEvent(QFocusEvent * /*event*/)
 {
 #ifndef QT_NO_ACCESSIBILITY
     QAccessibleEvent ev(this, QAccessible::Focus);
@@ -3112,7 +3112,7 @@ void QQuickItem::focusInEvent(QFocusEvent *event)
     events for an item. The event information is provided by the
     \a event parameter.
   */
-void QQuickItem::focusOutEvent(QFocusEvent *event)
+void QQuickItem::focusOutEvent(QFocusEvent * /*event*/)
 {
 }
 
index 3d27e83..751e65b 100644 (file)
 #include <QtGui/qdesktopservices.h>
 #include <QtGui/qfontdatabase.h>
 
+#ifdef Q_CC_MSVC
+// MSVC2010 warns about 'unused variable t', even if it's used in t->~T()
+#  pragma warning( disable : 4189 )
+#endif
 
 QT_BEGIN_NAMESPACE