Fixed unused parameter warning.

This commit is contained in:
Robert Osfield 2016-06-08 13:34:33 +01:00
parent ec0e30017c
commit 69a0a7331c
2 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ struct ColorWidget: public osgWidget::Widget {
return true; return true;
} }
bool keyUp(int key, int keyMask, osgWidget::WindowManager*) { bool keyUp(int /*key*/, int /*keyMask*/, osgWidget::WindowManager*) {
// osgWidget::warn() << "..." << key << " - " << keyMask << std::endl; // osgWidget::warn() << "..." << key << " - " << keyMask << std::endl;
return true; return true;
@ -78,7 +78,8 @@ osgWidget::Box* createBox(const std::string& name, osgWidget::Box::BoxType bt) {
return box; return box;
} }
int main(int argc, char** argv) { int main(int, char**)
{
osgViewer::Viewer viewer; osgViewer::Viewer viewer;
osgWidget::WindowManager* wm = new osgWidget::WindowManager( osgWidget::WindowManager* wm = new osgWidget::WindowManager(

View File

@ -300,9 +300,8 @@ const char* LABEL1 =
"nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in..." "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; osgViewer::Viewer viewer;
osgWidget::WindowManager* wm = new osgWidget::WindowManager( osgWidget::WindowManager* wm = new osgWidget::WindowManager(