Fixed some warnings

This commit is contained in:
Alexey Spizhevoy 2012-03-20 12:46:23 +00:00
parent dcb5464b3c
commit 23398bcb95
5 changed files with 5 additions and 5 deletions

View File

@ -84,7 +84,7 @@ protected:
class CV_EXPORTS NullDeblurer : public IDeblurer
{
public:
virtual void deblur(int idx, Mat &frame) {}
virtual void deblur(int /*idx*/, Mat &/*frame*/) {}
};
class CV_EXPORTS WeightingDeblurer : public IDeblurer

View File

@ -76,7 +76,7 @@ public:
virtual void reset();
virtual Mat nextFrame();
int frameCount() { return reader_.get(CV_CAP_PROP_FRAME_COUNT); }
int frameCount() { return static_cast<int>(reader_.get(CV_CAP_PROP_FRAME_COUNT)); }
double fps() { return reader_.get(CV_CAP_PROP_FPS); }
private:

View File

@ -91,7 +91,7 @@ protected:
class CV_EXPORTS NullInpainter : public IInpainter
{
public:
virtual void inpaint(int idx, Mat &frame, Mat &mask) {}
virtual void inpaint(int /*idx*/, Mat &/*frame*/, Mat &/*mask*/) {}
};
class CV_EXPORTS InpaintingPipeline : public IInpainter

View File

@ -60,7 +60,7 @@ public:
class CV_EXPORTS NullLog : public ILog
{
public:
virtual void print(const char *format, ...) {}
virtual void print(const char */*format*/, ...) {}
};
class CV_EXPORTS LogToStdout : public ILog

View File

@ -82,7 +82,7 @@ public:
bool mustEstimateTrimRatio() const { return mustEstimateTrimRatio_; }
void setTrimRatio(float val) { trimRatio_ = val; reset(); }
int trimRatio() const { return trimRatio_; }
float trimRatio() const { return trimRatio_; }
void setInclusionConstraint(bool val) { inclusionConstraint_ = val; }
bool inclusionConstraint() const { return inclusionConstraint_; }