From 38de2a875402808fb32afadff17c413222e8cc68 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 17 Sep 2018 22:16:31 +0000 Subject: [PATCH] calib3d: fix build warnings --- modules/calib3d/src/chessboard.cpp | 3 +++ modules/calib3d/test/test_chesscorners.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/modules/calib3d/src/chessboard.cpp b/modules/calib3d/src/chessboard.cpp index f2d10e793a..08e47d1fe8 100644 --- a/modules/calib3d/src/chessboard.cpp +++ b/modules/calib3d/src/chessboard.cpp @@ -2557,6 +2557,7 @@ std::vector Chessboard::Board::getContour()const last = 1; break; } + /* fallthrough */ case 2: // right if(iter.right(true)) { @@ -2566,6 +2567,7 @@ std::vector Chessboard::Board::getContour()const last = 2; break; } + /* fallthrough */ case 3: // bottom if(iter.bottom(true)) { @@ -2575,6 +2577,7 @@ std::vector Chessboard::Board::getContour()const last = 3; break; } + /* fallthrough */ case 4: // left if(iter.left(true)) { diff --git a/modules/calib3d/test/test_chesscorners.cpp b/modules/calib3d/test/test_chesscorners.cpp index f0e3378bb6..f19fb8d64d 100644 --- a/modules/calib3d/test/test_chesscorners.cpp +++ b/modules/calib3d/test/test_chesscorners.cpp @@ -148,6 +148,7 @@ void CV_ChessboardDetectorTest::run( int /*start_from */) { case CHESSBOARD_SB: checkByGeneratorHighAccuracy(); // not supported by CHESSBOARD + /* fallthrough */ case CHESSBOARD: checkByGenerator(); if (ts->get_err_code() != cvtest::TS::OK)