From 3844ee780cdc99a79cb6201a6d07d20cdabc4731 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 1 Jul 2016 20:17:16 +0300 Subject: [PATCH] build: fix compiler warnings (GCC 5.3.1) --- modules/core/test/test_math.cpp | 4 ++-- modules/core/test/test_utils.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/core/test/test_math.cpp b/modules/core/test/test_math.cpp index 288c0c1f48..5eb9fe267f 100644 --- a/modules/core/test/test_math.cpp +++ b/modules/core/test/test_math.cpp @@ -2384,7 +2384,7 @@ TEST(Core_SolvePoly, regression_5599) double prec; prec = cv::solvePoly(coefs, r); EXPECT_LE(prec, 1e-6); - EXPECT_EQ(4, r.total()); + EXPECT_EQ(4u, r.total()); //std::cout << "Preciseness = " << prec << std::endl; //std::cout << "roots:\n" << r << "\n" << std::endl; ASSERT_EQ(CV_32FC2, r.type()); @@ -2400,7 +2400,7 @@ TEST(Core_SolvePoly, regression_5599) double prec; prec = cv::solvePoly(coefs, r); EXPECT_LE(prec, 1e-6); - EXPECT_EQ(2, r.total()); + EXPECT_EQ(2u, r.total()); //std::cout << "Preciseness = " << prec << std::endl; //std::cout << "roots:\n" << r << "\n" << std::endl; ASSERT_EQ(CV_32FC2, r.type()); diff --git a/modules/core/test/test_utils.cpp b/modules/core/test/test_utils.cpp index a527ba6f28..8ff76af661 100644 --- a/modules/core/test/test_utils.cpp +++ b/modules/core/test/test_utils.cpp @@ -223,13 +223,13 @@ TEST(CommandLineParser, positional_regression_5074_equal_sign) TEST(AutoBuffer, allocate_test) { AutoBuffer abuf(2); - EXPECT_EQ(2, abuf.size()); + EXPECT_EQ(2u, abuf.size()); abuf.allocate(4); - EXPECT_EQ(4, abuf.size()); + EXPECT_EQ(4u, abuf.size()); abuf.allocate(6); - EXPECT_EQ(6, abuf.size()); + EXPECT_EQ(6u, abuf.size()); } } // namespace