From 656649084d21a323a13df4d11c8f19aed26ed850 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Jun 2016 13:40:02 +0100 Subject: [PATCH] Fixed unused parameter warning. --- examples/osgviewerQt/osgviewerQt.cpp | 2 +- examples/osgwidgetwindow/osgwidgetwindow.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/osgviewerQt/osgviewerQt.cpp b/examples/osgviewerQt/osgviewerQt.cpp index defb79c8a..1a2eac464 100644 --- a/examples/osgviewerQt/osgviewerQt.cpp +++ b/examples/osgviewerQt/osgviewerQt.cpp @@ -81,7 +81,7 @@ public: return new osgQt::GraphicsWindowQt(traits.get()); } - virtual void paintEvent( QPaintEvent* event ) + virtual void paintEvent( QPaintEvent* /*event*/ ) { frame(); } protected: diff --git a/examples/osgwidgetwindow/osgwidgetwindow.cpp b/examples/osgwidgetwindow/osgwidgetwindow.cpp index 96a5e8a9f..7b145f8a9 100644 --- a/examples/osgwidgetwindow/osgwidgetwindow.cpp +++ b/examples/osgwidgetwindow/osgwidgetwindow.cpp @@ -51,14 +51,15 @@ struct CallbackObject: public osgWidget::Callback { osgWidget::Callback(evType) { } - virtual bool operator()(osgWidget::Event& ev) { + virtual bool operator()(osgWidget::Event& /*ev*/) { std::cout << "here" << std::endl; return false; } }; -int main(int argc, char** argv) { +int main(int, char**) +{ osgViewer::Viewer viewer; // Let's get busy! The WindowManager class is actually an osg::Switch,