Fixed unused parameter warning.

This commit is contained in:
Robert Osfield 2016-06-08 11:50:18 +01:00
parent c8d14a1745
commit 744421631e

View File

@ -52,7 +52,7 @@ public:
} }
/** Copy ctor. */ /** Copy ctor. */
MyArray(const MyArray& other, const osg::CopyOp& copyop) : MyArray(const MyArray& other, const osg::CopyOp& /*copyop*/) :
osg::Array(osg::Array::Vec3ArrayType,3,GL_FLOAT), osg::Array(osg::Array::Vec3ArrayType,3,GL_FLOAT),
_numElements(other._numElements), _numElements(other._numElements),
_ptr(other._ptr) { _ptr(other._ptr) {
@ -125,8 +125,8 @@ public:
return _numElements * sizeof(osg::Vec3); return _numElements * sizeof(osg::Vec3);
} }
virtual void reserveArray(unsigned int num) { OSG_NOTICE<<"reserveArray() not supported"<<std::endl; } virtual void reserveArray(unsigned int /*num*/) { OSG_NOTICE<<"reserveArray() not supported"<<std::endl; }
virtual void resizeArray(unsigned int num) { OSG_NOTICE<<"resizeArray() not supported"<<std::endl; } virtual void resizeArray(unsigned int /*num*/) { OSG_NOTICE<<"resizeArray() not supported"<<std::endl; }
private: private:
unsigned int _numElements; unsigned int _numElements;