warning due to contrib/retina.hpp (Bug #1565)
When I compile code with OpenCv and gcc -Wall -Wextra, I get the following warning :
.../include/opencv2/contrib/retina.hpp:332:117: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
It comes from :
const bool _convertCvMat2ValarrayBuffer(const cv::Mat inputMatToConvert, std::valarray<float> &outputValarrayMatrix);
The return type should be "bool" and not "const bool"
It is on svn truk version 7212.
Thank you for your response.
I changed it in 7263 revision.
It is good style (see "Effective C++" Meyers), it helps to prevent such errors:
_convertCvMat2ValarrayBuffer(...) = true;
But current compilers are not supported it, so I removed const here.
- Status changed from Open to Done
- Pull request set to fixed