From bfd1d7c55b2697a5b972f3edfc118c85c78ba117 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Jun 2016 09:49:58 +0100 Subject: [PATCH] Fixed unused parameter warning. --- src/osgPlugins/osgjs/JSON_Objects | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 << '"'; }