The following issues were found

modules/calib3d/test/test_undistort_points.cpp
1 issues
syntax error
Error

Line: 95

                  }
}

TEST(Calib3d_Undistort, accuracy) { CV_UndistortTest test; test.safe_run(); }

TEST(Calib3d_Undistort, stop_criteria)
{
    Mat cameraMatrix = (Mat_<double>(3,3,CV_64F) << 857.48296979, 0, 968.06224829,
                                                        0, 876.71824265, 556.37145899,

            

Reported by Cppcheck.

modules/calib3d/test/test_usac.cpp
1 issues
syntax error
Error

Line: 227

                  ASSERT_GT(num_found_inliers, 0.8 * inl_size);
}

TEST(usac_Homography, accuracy) {
    std::vector<int> gt_inliers;
    const int pts_size = 1500;
    cv::RNG &rng = cv::theRNG();
    // do not test USAC_PARALLEL, because it is not deterministic
    const std::vector<int> flags = {USAC_DEFAULT, USAC_ACCURATE, USAC_PROSAC, USAC_FAST, USAC_MAGSAC};

            

Reported by Cppcheck.

modules/core/perf/cuda/perf_gpumat.cpp
1 issues
syntax error
Error

Line: 57

              //////////////////////////////////////////////////////////////////////
// SetTo

PERF_TEST_P(Sz_Depth_Cn, CUDA_GpuMat_SetTo,
            Combine(CUDA_TYPICAL_MAT_SIZES,
                    Values(CV_8U, CV_16U, CV_32F, CV_64F),
                    CUDA_CHANNELS_1_3_4))
{
    const cv::Size size = GET_PARAM(0);

            

Reported by Cppcheck.

modules/core/perf/opencl/perf_arithm.cpp
1 issues
There is an unknown macro here somewhere. Configuration is required. If CV_ENUM is a macro then please configure it.
Error

Line: 353

                  FLIP_BOTH = 0, FLIP_ROWS, FLIP_COLS
};

CV_ENUM(FlipType, FLIP_BOTH, FLIP_ROWS, FLIP_COLS)

typedef tuple<Size, MatType, FlipType> FlipParams;
typedef TestBaseWithParam<FlipParams> FlipFixture;

OCL_PERF_TEST_P(FlipFixture, Flip,

            

Reported by Cppcheck.

modules/core/perf/opencl/perf_bufferpool.cpp
1 issues
syntax error
Error

Line: 50

              
typedef TestBaseWithParam<bool> BufferPoolFixture;

OCL_PERF_TEST_P(BufferPoolFixture, BufferPool_UMatCreation100, Bool())
{
    BufferPoolState s(cv::ocl::getOpenCLAllocator()->getBufferPoolController(), GetParam());

    Size sz(1920, 1080);


            

Reported by Cppcheck.

modules/core/perf/opencl/perf_channels.cpp
1 issues
syntax error
Error

Line: 88

              typedef MergeParams SplitParams;
typedef TestBaseWithParam<SplitParams> SplitFixture;

OCL_PERF_TEST_P(SplitFixture, Split,
                ::testing::Combine(OCL_TEST_SIZES, OCL_PERF_ENUM(CV_8U, CV_32F), Values(2, 3)))
{
    const SplitParams params = GetParam();
    const Size srcSize = get<0>(params);
    const int depth = get<1>(params), cn = get<2>(params), type = CV_MAKE_TYPE(depth, cn);

            

Reported by Cppcheck.

modules/core/perf/opencl/perf_dxt.cpp
1 issues
syntax error
Error

Line: 68

              typedef tuple<OCL_FFT_TYPE, Size, int> DftParams;
typedef TestBaseWithParam<DftParams> DftFixture;

OCL_PERF_TEST_P(DftFixture, Dft, ::testing::Combine(Values(C2C, R2R, C2R, R2C),
                                                    Values(OCL_SIZE_1, OCL_SIZE_2, OCL_SIZE_3, Size(512, 512), Size(1024, 1024), Size(2048, 2048)),
                                                    Values((int) 0, (int)DFT_ROWS, (int)DFT_SCALE, (int)DFT_INVERSE,
                                                           (int)DFT_INVERSE | DFT_SCALE, (int)DFT_ROWS | DFT_INVERSE)))
{
    const DftParams params = GetParam();

            

Reported by Cppcheck.

modules/core/perf/opencl/perf_gemm.cpp
1 issues
There is an unknown macro here somewhere. Configuration is required. If CV_ENUM is a macro then please configure it.
Error

Line: 57

              
///////////// gemm ////////////////////////

CV_ENUM(FlagType, 0, GEMM_1_T, GEMM_2_T, GEMM_3_T, GEMM_1_T|GEMM_2_T, GEMM_2_T|GEMM_3_T)

typedef tuple<Size, FlagType, MatType> GemmParams;
typedef TestBaseWithParam<GemmParams> GemmFixture;

OCL_PERF_TEST_P(GemmFixture, Gemm, ::testing::Combine(

            

Reported by Cppcheck.

modules/core/perf/opencl/perf_matop.cpp
1 issues
syntax error
Error

Line: 267

                  SANITY_CHECK_NOTHING();
}

INSTANTIATE_TEST_CASE_P(/*FULL*/, OpenCLBuffer,
    testing::Combine(
        testing::Values(szVGA, sz720p, sz1080p, sz2160p),
        testing::Values(CV_8UC1, CV_8UC2, CV_8UC3, CV_8UC4),
        testing::Values(ROI_FULL)
    )

            

Reported by Cppcheck.

modules/core/perf/opencl/perf_usage_flags.cpp
1 issues
syntax error
Error

Line: 32

              
    UMat src(sz, CV_8UC1, Scalar::all(128), srcAllocMem);

    OCL_TEST_CYCLE()
    {
        UMat dst(dstAllocMem);

        cv::add(src, Scalar::all(1), dst);
        {

            

Reported by Cppcheck.