From 69a0a7331cd90ae5639f3e4b327b15f42f08e457 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Jun 2016 13:34:33 +0100 Subject: [PATCH] Fixed unused parameter warning. --- examples/osgwidgetbox/osgwidgetbox.cpp | 5 +++-- examples/osgwidgetmessagebox/osgwidgetmessagebox.cpp | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/osgwidgetbox/osgwidgetbox.cpp b/examples/osgwidgetbox/osgwidgetbox.cpp index 91dbae4e3..a1645d6d2 100644 --- a/examples/osgwidgetbox/osgwidgetbox.cpp +++ b/examples/osgwidgetbox/osgwidgetbox.cpp @@ -49,7 +49,7 @@ struct ColorWidget: public osgWidget::Widget { return true; } - bool keyUp(int key, int keyMask, osgWidget::WindowManager*) { + bool keyUp(int /*key*/, int /*keyMask*/, osgWidget::WindowManager*) { // osgWidget::warn() << "..." << key << " - " << keyMask << std::endl; return true; @@ -78,7 +78,8 @@ osgWidget::Box* createBox(const std::string& name, osgWidget::Box::BoxType bt) { return box; } -int main(int argc, char** argv) { +int main(int, char**) +{ osgViewer::Viewer viewer; osgWidget::WindowManager* wm = new osgWidget::WindowManager( diff --git a/examples/osgwidgetmessagebox/osgwidgetmessagebox.cpp b/examples/osgwidgetmessagebox/osgwidgetmessagebox.cpp index acd1b5655..af662ad34 100644 --- a/examples/osgwidgetmessagebox/osgwidgetmessagebox.cpp +++ b/examples/osgwidgetmessagebox/osgwidgetmessagebox.cpp @@ -300,9 +300,8 @@ const char* LABEL1 = "nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in..." ; -int main(int argc, char** argv) +int main(int, char**) { - osgViewer::Viewer viewer; osgWidget::WindowManager* wm = new osgWidget::WindowManager(