From cd2b94771c368192769ad127ccf7d598f63b3f83 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 18 Apr 2012 11:55:15 +0200 Subject: [PATCH] Fix some unused variable warnings. Change-Id: I3ffbb155c0efa65bb33a0e2ce80dbd75dc56f3fc Reviewed-by: David Faure Reviewed-by: Jason McDonald --- src/corelib/kernel/qvariant.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index 82e0435d0a..47c87098f8 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -839,6 +839,9 @@ static void customStreamDebug(QDebug dbg, const QVariant &variant) { QMetaType::TypeFlags flags = QMetaType::typeFlags(variant.userType()); if (flags & QMetaType::PointerToQObject) dbg.nospace() << variant.value(); +#else + Q_UNUSED(dbg); + Q_UNUSED(variant); #endif } #endif