From c52c8e5e1e3482e144279d8f85df06f6c3597041 Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Tue, 14 Apr 2015 10:22:25 +0200 Subject: Fix compilation error (OS X 10.8, warnings as errors) Failed to compile on my OS X 10.8 (unused variable warning treated as error) Change-Id: I7ee881d4b905539361a10e93cff76b44ec08afbf Reviewed-by: Timur Pocheptsov --- src/widgets/graphicsview/qgraphicsitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/widgets/graphicsview/qgraphicsitem.cpp b/src/widgets/graphicsview/qgraphicsitem.cpp index eaa5cb99e4..cd30410097 100644 --- a/src/widgets/graphicsview/qgraphicsitem.cpp +++ b/src/widgets/graphicsview/qgraphicsitem.cpp @@ -11290,7 +11290,7 @@ static void formatGraphicsItemHelper(QDebug debug, const QGraphicsItem *item) debug << ", pos="; QtDebugUtils::formatQPoint(debug, item->pos()); if (const qreal z = item->zValue()) - debug << ", z=" << item->zValue(); + debug << ", z=" << z; if (item->flags()) debug << ", flags=" << item->flags(); } -- cgit v1.2.3