Fixed unused parameter warning.

This commit is contained in:
Robert Osfield 2016-06-08 12:14:35 +01:00
parent e6252256e0
commit 0acb419cf5

View File

@ -103,12 +103,12 @@ struct PopulateHistogram
void luminance(float l) { update(l); } void luminance(float l) { update(l); }
void alpha(float a) { update(a); } void alpha(float a) { update(a); }
void luminance_alpha(float l, float a) { update(l); } void luminance_alpha(float l, float /*a*/) { update(l); }
void rgb(float r, float g, float b) { update(r); } void rgb(float r, float /*g*/, float /*b*/) { update(r); }
void rgba(float r, float g, float b, float a) { update(a); } void rgba(float /*r*/, float /*g*/, float /*b*/, float a) { update(a); }
}; };
void Histogram::analyse(const osg::Image* image, double interval) void Histogram::analyse(const osg::Image* image, double /*interval*/)
{ {
PopulateHistogram populateHistogram(_valueMap); PopulateHistogram populateHistogram(_valueMap);
readImage(image, populateHistogram); readImage(image, populateHistogram);