From 60c81befa22108a96bbf505c40f4a2af8ed843e2 Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Tue, 9 Sep 2014 14:43:29 +0200 Subject: Fix build warnings Change-Id: I842c8cd117f1e25cc7848618e86d2aff2e5e522f Reviewed-by: Lars Knoll --- src/plugins/scenegraph/softwarecontext/context.cpp | 2 ++ src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp | 3 +-- src/plugins/scenegraph/softwarecontext/renderingvisitor.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/scenegraph/softwarecontext/context.cpp b/src/plugins/scenegraph/softwarecontext/context.cpp index 33dc7e87e4..345728f833 100644 --- a/src/plugins/scenegraph/softwarecontext/context.cpp +++ b/src/plugins/scenegraph/softwarecontext/context.cpp @@ -57,6 +57,8 @@ Renderer::Renderer(QSGRenderContext *context) void Renderer::renderScene(GLuint fboId) { + Q_UNUSED(fboId) + class B : public QSGBindable { public: diff --git a/src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp b/src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp index 879c30eb4f..153edce3be 100644 --- a/src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp +++ b/src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp @@ -124,9 +124,8 @@ bool RenderingVisitor::visit(QSGPainterNode *node) return true; } -void RenderingVisitor::endVisit(QSGPainterNode *node) +void RenderingVisitor::endVisit(QSGPainterNode *) { - } bool RenderingVisitor::visit(QSGRectangleNode *node) diff --git a/src/plugins/scenegraph/softwarecontext/renderingvisitor.h b/src/plugins/scenegraph/softwarecontext/renderingvisitor.h index d65faa4293..e405fe844b 100644 --- a/src/plugins/scenegraph/softwarecontext/renderingvisitor.h +++ b/src/plugins/scenegraph/softwarecontext/renderingvisitor.h @@ -38,7 +38,7 @@ public: virtual bool visit(QSGImageNode *node); virtual void endVisit(QSGImageNode *node); virtual bool visit(QSGPainterNode *node); - virtual void endVisit(QSGPainterNode *node); + virtual void endVisit(QSGPainterNode *); virtual bool visit(QSGRectangleNode *node); virtual void endVisit(QSGRectangleNode *node); virtual bool visit(QSGGlyphNode *node); -- cgit v1.2.3