diff --git a/modules/contrib/src/ba.cpp b/modules/contrib/src/ba.cpp index 80047877b4..0e2afd95bb 100644 --- a/modules/contrib/src/ba.cpp +++ b/modules/contrib/src/ba.cpp @@ -744,7 +744,7 @@ static void fjac(int /*i*/, int /*j*/, CvMat *point_params, CvMat* cam_params, C CvMat* _mp = cvCreateMat(1, 1, CV_64FC2 ); //projection of the point //split camera params into different matrices - CvMat _ri, _ti, _k; + CvMat _ri, _ti, _k = cvMat(0, 0, CV_64F, NULL); // dummy initialization to fix warning of cl.exe cvGetRows( cam_params, &_ri, 0, 3 ); cvGetRows( cam_params, &_ti, 3, 6 ); diff --git a/modules/imgproc/src/histogram.cpp b/modules/imgproc/src/histogram.cpp index bfcdee515f..da39ca9b33 100644 --- a/modules/imgproc/src/histogram.cpp +++ b/modules/imgproc/src/histogram.cpp @@ -270,6 +270,8 @@ public: } private: + calcHist1D_Invoker operator=(const calcHist1D_Invoker&); + T* p_[one]; uchar* mask_; int step_[one]; @@ -342,6 +344,8 @@ public: } private: + calcHist2D_Invoker operator=(const calcHist2D_Invoker&); + T* p_[two]; uchar* mask_; int step_[two]; @@ -432,6 +436,8 @@ public: } private: + calcHist3D_Invoker operator=(const calcHist3D_Invoker&); + T* p_[three]; uchar* mask_; int step_[three];