From 7813eef92b6111805732a645e51f1b91071c33c0 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 10 Oct 2018 19:26:19 +0000 Subject: [PATCH] fix build warnings --- modules/stitching/src/matchers.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/stitching/src/matchers.cpp b/modules/stitching/src/matchers.cpp index e46d1f29ca..75261090c5 100644 --- a/modules/stitching/src/matchers.cpp +++ b/modules/stitching/src/matchers.cpp @@ -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