Fix warning about unused variable in tst_qvariant.
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Mon, 7 May 2012 08:05:35 +0000 (10:05 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 23 May 2012 12:18:34 +0000 (14:18 +0200)
Change-Id: I9e713aa6a2033c5c4cd4b97bbd4ebb461d46962a
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp

index 47392a3..57cbdc9 100644 (file)
@@ -380,6 +380,7 @@ struct MessageHandlerInvalidType
 
     static void handler(QtMsgType type, const char *txt)
     {
+        Q_UNUSED(type);
         QString msg = QString::fromLatin1(txt);
         // uint(-1) can be platform dependent so we check only beginning of the message.
         ok = msg.startsWith("Trying to construct an instance of an invalid type, type id:");