diff --git a/src/osgPlugins/osgjs/JSON_Objects b/src/osgPlugins/osgjs/JSON_Objects index 3977f6d3b..b75f8a640 100644 --- a/src/osgPlugins/osgjs/JSON_Objects +++ b/src/osgPlugins/osgjs/JSON_Objects @@ -40,7 +40,7 @@ struct JSONObjectBase : public osg::Referenced { static int level; static std::string indent(); - virtual void write(json_stream& str, WriteVisitor& visitor) {} + virtual void write(json_stream& /*str*/, WriteVisitor& /*visitor*/) {} }; template struct JSONValue; @@ -144,7 +144,7 @@ struct JSONValue : public JSONObject _value = v; } T& getValue() { return _value; } - virtual void write(json_stream& str, WriteVisitor& visitor) { + virtual void write(json_stream& str, WriteVisitor& /*visitor*/) { str << _value ; } @@ -157,7 +157,7 @@ struct JSONValue : public JSONObject JSONValue(const double& v) { _value = v; } - void write(json_stream& str, WriteVisitor& visitor) { + void write(json_stream& str, WriteVisitor& /*visitor*/) { if (osg::isNaN(_value)) { _value = 0.0; } @@ -174,7 +174,7 @@ struct JSONValue : public JSONObject _value = jsonEscape(v); } - void write(json_stream& str, WriteVisitor& visitor) { + void write(json_stream& str, WriteVisitor& /*visitor*/) { str << '"' << _value << '"'; }