Fixed unused parameter warning.

This commit is contained in:
Robert Osfield 2016-06-08 13:38:40 +01:00
parent 018022fd9b
commit 9290aaad0f

View File

@ -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<CustomStyled*>(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(