diff --git a/src/osgPlugins/osgjs/Animation.cpp b/src/osgPlugins/osgjs/Animation.cpp index 37fe74e48..8c384b085 100644 --- a/src/osgPlugins/osgjs/Animation.cpp +++ b/src/osgPlugins/osgjs/Animation.cpp @@ -298,7 +298,7 @@ JSONObject* createJSONAnimation(osgAnimation::Animation* anim, WriteVisitor* wri return json.release(); } -JSONObject* createJSONUpdateMatrixTransform(osgAnimation::UpdateMatrixTransform& acb, WriteVisitor* writer) +JSONObject* createJSONUpdateMatrixTransform(osgAnimation::UpdateMatrixTransform& acb, WriteVisitor* /*writer*/) { osg::ref_ptr json = new JSONObject; json->addUniqueID(); diff --git a/src/osgPlugins/osgjs/WriteVisitor b/src/osgPlugins/osgjs/WriteVisitor index c2e64d247..a129fcbff 100644 --- a/src/osgPlugins/osgjs/WriteVisitor +++ b/src/osgPlugins/osgjs/WriteVisitor @@ -290,7 +290,7 @@ public: } } - void applyCallback(osg::Node& node, JSONObject* json) { + void applyCallback(osg::Node& node, JSONObject* in_json) { osg::ref_ptr updateCallbacks = new JSONArray; osg::ref_ptr nc = node.getUpdateCallback(); while (nc) { @@ -361,7 +361,7 @@ public: } if (!updateCallbacks->getArray().empty()) { - json->getMaps()["UpdateCallbacks"] = updateCallbacks; + in_json->getMaps()["UpdateCallbacks"] = updateCallbacks; } }