Fix warning about unused variable in tst_qvariant.

Change-Id: I9e713aa6a2033c5c4cd4b97bbd4ebb461d46962a
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
This commit is contained in:
Jędrzej Nowacki 2012-05-07 10:05:35 +02:00 committed by Qt by Nokia
parent c283d78a1d
commit 06906ce40d

View 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:");