[MacPorts] #43963: opencv at 2.4.8 compile warning

MacPorts noreply at macports.org
Sun Jun 8 08:54:24 PDT 2014


#43963: opencv at 2.4.8 compile warning
--------------------------+--------------------------------
 Reporter:  manand1982@…  |      Owner:  macports-tickets@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.2.1
 Keywords:                |       Port:  opencv
--------------------------+--------------------------------
 I'm using OSx mavericks and whenever I include opencv.hpp and compile the
 code, I get the warnings mentioned below.  I use cmake to generate make
 files and build my project.  I do not want to suppress warnings as it
 helps me in figuring out other issues in my code.  Is there a way to
 remove the opencv warning?


 {{{
 In file included from /opt/local/include/opencv2/opencv.hpp:56:
 /opt/local/include/opencv2/ml/ml.hpp:961:18: warning:
       'CvForestTree::train' hides overloaded virtual functions
       [-Woverloaded-virtual]
     virtual bool train( CvDTreeTrainData* trainData, const CvMat...
                  ^
 /opt/local/include/opencv2/ml/ml.hpp:867:18: note: hidden overloaded
       virtual function 'CvDTree::train' declared here: different number
       of parameters (2 vs 3)
     virtual bool train( CvMLData* trainData, CvDTreeParams params...
                  ^
 /opt/local/include/opencv2/ml/ml.hpp:877:26: note: hidden overloaded
       virtual function 'CvDTree::train' declared here: different number
       of parameters (8 vs 3)
     CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,
                          ^
 /opt/local/include/opencv2/ml/ml.hpp:1149:18: warning:
       'CvBoostTree::train' hides overloaded virtual functions
       [-Woverloaded-virtual]
     virtual bool train( CvDTreeTrainData* trainData,
                  ^
 /opt/local/include/opencv2/ml/ml.hpp:867:18: note: hidden overloaded
       virtual function 'CvDTree::train' declared here: different number
       of parameters (2 vs 3)
     virtual bool train( CvMLData* trainData, CvDTreeParams params...
                  ^
 /opt/local/include/opencv2/ml/ml.hpp:877:26: note: hidden overloaded
       virtual function 'CvDTree::train' declared here: different number
       of parameters (8 vs 3)
     CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,
                          ^


 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/43963>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list