aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/scenegraph
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-11-17 10:47:36 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-21 09:43:11 +0100
commitd7a5727d6942f77b2849ff27af472bc73f3b9dcb (patch)
tree95f53785ba4c9208756faf052b8d23aed84e2970 /src/declarative/scenegraph
parenteeadfe200d71d778516b9dfb699046c005f8b6a0 (diff)
Silence compiler warnings about unused variables (MSVC)
Fixes most 'C4189: local variable is initialized but not referenced' warnings Change-Id: I8c5a1ba0a50dd3fcb22294e564425846362ee911 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/declarative/scenegraph')
-rw-r--r--src/declarative/scenegraph/util/qsgtexture.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/scenegraph/util/qsgtexture.cpp b/src/declarative/scenegraph/util/qsgtexture.cpp
index 7cd398d9e0..2d3e7cdd3c 100644
--- a/src/declarative/scenegraph/util/qsgtexture.cpp
+++ b/src/declarative/scenegraph/util/qsgtexture.cpp
@@ -129,6 +129,8 @@ inline static void qt_debug_add_texture(QSGTexture* texture)
item->backTraceSize = backtrace(item->backTrace, BACKTRACE_SIZE);
qt_debug_allocated_textures.insert(texture, item);
}
+#else
+ Q_UNUSED(texture);
#endif // Q_OS_LINUX
++qt_debug_texture_count;
@@ -150,6 +152,8 @@ static void qt_debug_remove_texture(QSGTexture* texture)
delete item;
}
}
+#else
+ Q_UNUSED(texture)
#endif
--qt_debug_texture_count;