From 24e257f5ed3116df0d425e8c7db5674f03946450 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 12 Jan 2015 11:08:33 +0200 Subject: [PATCH] QmlProfiler: Fix compiler warnings on release build Change-Id: Id6fde7279f80cdc7a74322bcee4e0ce41f7fc3bc Reviewed-by: Ulf Hermann --- src/libs/timeline/timelineitemsrenderpass.cpp | 1 + src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libs/timeline/timelineitemsrenderpass.cpp b/src/libs/timeline/timelineitemsrenderpass.cpp index 9dd8e5492f9..41f0a362cd2 100644 --- a/src/libs/timeline/timelineitemsrenderpass.cpp +++ b/src/libs/timeline/timelineitemsrenderpass.cpp @@ -156,6 +156,7 @@ OpaqueColoredPoint2DWithSize *TimelineItemsGeometry::vertexData() Q_ASSERT(attributes[3].position == 3); Q_ASSERT(attributes[3].tupleSize == 4); Q_ASSERT(attributes[3].type == GL_UNSIGNED_BYTE); + Q_UNUSED(attributes); return static_cast(node->geometry()->vertexData()); } diff --git a/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.cpp b/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.cpp index 94380d5b54f..b75e0ca5032 100644 --- a/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.cpp @@ -222,6 +222,7 @@ Point2DWithOffset *BindlingLoopsGeometry::vertexData() Q_ASSERT(attributes[1].position == 1); Q_ASSERT(attributes[1].tupleSize == 2); Q_ASSERT(attributes[1].type == GL_FLOAT); + Q_UNUSED(attributes); return static_cast(geometry->vertexData()); }