1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-24 03:03:35 +08:00

Fixing some compiler warnings

This commit is contained in:
Vladislav Samsonov
2016-06-22 13:53:03 +03:00
parent 805a0c4b97
commit 75b3ea9f72
2 changed files with 13 additions and 0 deletions

View File

@@ -116,6 +116,8 @@ private:
void getSystem( OutputArray A1Out, OutputArray A2Out, OutputArray b1Out, OutputArray b2Out,
const std::vector<Point2f> &features, const std::vector<Point2f> &predictedFeatures,
const Size size );
OpticalFlowPCAFlow& operator=( const OpticalFlowPCAFlow& ); // make it non-assignable
};
CV_EXPORTS_W Ptr<DenseOpticalFlow> createOptFlow_PCAFlow();

View File

@@ -43,6 +43,17 @@
#include "opencv2/ximgproc/edge_filter.hpp"
#include "precomp.hpp"
/* Disable "from double to float" and "from size_t to int" warnings.
* Fixing these would make the code look ugly by introducing explicit cast all around.
* Here these warning are pointless anyway.
*/
#ifdef _MSC_VER
#pragma warning( disable : 4305 4244 4267 4838 )
#endif
#ifdef __clang__
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
#endif
namespace cv
{
namespace optflow