From 46874d40dfb56560bc76936747400f76197f1a59 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Mon, 1 Oct 2012 22:28:34 +0400 Subject: [PATCH] warnings under windows --- modules/features2d/src/fast.cpp | 4 ++++ modules/objdetect/include/opencv2/objdetect/objdetect.hpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/features2d/src/fast.cpp b/modules/features2d/src/fast.cpp index 1d62f9009a..9fcc5b546c 100644 --- a/modules/features2d/src/fast.cpp +++ b/modules/features2d/src/fast.cpp @@ -54,6 +54,7 @@ void FAST_t(InputArray _img, std::vector& keypoints, int threshold, bo const int K = patternSize/2, N = patternSize + K + 1; #if CV_SSE2 const int quarterPatternSize = patternSize/4; + (void)quarterPatternSize; #endif int i, j, k, pixel[25]; makeOffsets(pixel, (int)img.step, patternSize); @@ -64,6 +65,9 @@ void FAST_t(InputArray _img, std::vector& keypoints, int threshold, bo #if CV_SSE2 __m128i delta = _mm_set1_epi8(-128), t = _mm_set1_epi8((char)threshold), K16 = _mm_set1_epi8((char)K); + (void)K16; + (void)delta; + (void)t; #endif uchar threshold_tab[512]; for( i = -255; i <= 255; i++ ) diff --git a/modules/objdetect/include/opencv2/objdetect/objdetect.hpp b/modules/objdetect/include/opencv2/objdetect/objdetect.hpp index a39be74443..b75798c45b 100644 --- a/modules/objdetect/include/opencv2/objdetect/objdetect.hpp +++ b/modules/objdetect/include/opencv2/objdetect/objdetect.hpp @@ -411,7 +411,7 @@ protected: enum { DO_CANNY_PRUNING = 1, SCALE_IMAGE = 2, FIND_BIGGEST_OBJECT = 4, DO_ROUGH_SEARCH = 8 }; - friend struct CascadeClassifierInvoker; + friend class CascadeClassifierInvoker; template friend int predictOrdered( CascadeClassifier& cascade, Ptr &featureEvaluator, double& weight);