Fixed build warnings
authorAndrey Kamaev <no@email>
Thu, 26 Apr 2012 11:58:06 +0000 (11:58 +0000)
committerAndrey Kamaev <no@email>
Thu, 26 Apr 2012 11:58:06 +0000 (11:58 +0000)
modules/highgui/test/test_framecount.cpp
modules/highgui/test/test_video_io.cpp

index 8633f17..d68c2d7 100644 (file)
@@ -65,13 +65,10 @@ void CV_FramecountTest::run(int)
 
     ts->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str());
 
-    int failed = 0;
     Ptr<CvCapture> cap;
 
     for (size_t i = 0; i < n; ++i)
     {
-        int code = cvtest::TS::OK;
-
         string file_path = src_dir+"video/big_buck_bunny."+ext[i];
 
         cap = cvCreateFileCapture(file_path.c_str());
index 46fe8d2..e26fd17 100644 (file)
@@ -452,7 +452,7 @@ void CV_HighGuiTest::SpecificVideoTest(const string& dir, const cvtest::VideoFor
         return;
     }
 
-    for (int i = 0; i < FRAME_COUNT; i++)
+    for (int i = 0; (size_t)i < FRAME_COUNT; i++)
     {
         Mat frame; cap >> frame;
         if (frame.empty())