fix build warnings
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Wed, 10 Oct 2018 19:26:19 +0000 (19:26 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Wed, 10 Oct 2018 19:26:19 +0000 (19:26 +0000)
modules/stitching/src/matchers.cpp

index e46d1f2..7526109 100644 (file)
@@ -52,6 +52,10 @@ using namespace cv::cuda;
 #include "opencv2/xfeatures2d.hpp"
 using xfeatures2d::SURF;
 using xfeatures2d::SIFT;
+#else
+#  if defined(_MSC_VER)
+#    pragma warning(disable:4702)  // unreachable code
+#  endif
 #endif
 
 #ifdef HAVE_OPENCV_CUDAIMGPROC