From 9290aaad0f2254fac45e088878d30c2476b8f68f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Jun 2016 13:38:40 +0100 Subject: [PATCH] Fixed unused parameter warning. --- examples/osgwidgetstyled/osgwidgetstyled.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/osgwidgetstyled/osgwidgetstyled.cpp b/examples/osgwidgetstyled/osgwidgetstyled.cpp index a6ad7d04a..fa9131dd4 100644 --- a/examples/osgwidgetstyled/osgwidgetstyled.cpp +++ b/examples/osgwidgetstyled/osgwidgetstyled.cpp @@ -30,7 +30,7 @@ class CustomStyled: public osgWidget::Widget { }; class CustomStyle: public osgWidget::Style { - virtual bool applyStyle(osgWidget::Widget* w, osgWidget::Reader r) { + virtual bool applyStyle(osgWidget::Widget* w, osgWidget::Reader /*r*/) { CustomStyled* cs = dynamic_cast(w); if(!cs) return false; @@ -41,7 +41,8 @@ class CustomStyle: public osgWidget::Style { } }; -int main(int argc, char** argv) { +int main(int, char**) +{ osgViewer::Viewer viewer; osgWidget::WindowManager* wm = new osgWidget::WindowManager(