The following issues were found

modules/photo/perf/perf_inpaint.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: 6

              namespace opencv_test
{

CV_ENUM(InpaintingMethod, INPAINT_NS, INPAINT_TELEA)
typedef tuple<Size, InpaintingMethod> InpaintArea_InpaintingMethod_t;
typedef perf::TestBaseWithParam<InpaintArea_InpaintingMethod_t> InpaintArea_InpaintingMethod;


PERF_TEST_P(InpaintArea_InpaintingMethod, inpaint,

            

Reported by Cppcheck.

modules/photo/test/ocl/test_denoising.cpp
1 issues
syntax error
Error

Line: 79

              
typedef FastNlMeansDenoisingTestBase FastNlMeansDenoising;

OCL_TEST_P(FastNlMeansDenoising, Mat)
{
    for (int j = 0; j < test_loop_times; j++)
    {
        generateTestData();


            

Reported by Cppcheck.

modules/photo/test/test_cloning.cpp
1 issues
syntax error
Error

Line: 58

              
static const double numerical_precision = 0.05; // 95% of pixels should have exact values

TEST(Photo_SeamlessClone_normal, regression)
{
    string folder = string(cvtest::TS::ptr()->get_data_path()) + "cloning/Normal_Cloning/";
    string original_path1 = folder + "source1.png";
    string original_path2 = folder + "destination1.png";
    string original_path3 = folder + "mask.png";

            

Reported by Cppcheck.

modules/photo/test/test_denoise_tvl1.cpp
1 issues
syntax error
Error

Line: 81

                  return ok;
}

TEST(Optim_denoise_tvl1, regression_basic)
{
    cv::RNG rng(42);
    cv::Mat img = cv::imread(cvtest::TS::ptr()->get_data_path() + "shared/lena.png", 0), noisy, res;

    ASSERT_FALSE(img.empty()) << "Error: can't open 'lena.png'";

            

Reported by Cppcheck.

modules/photo/test/test_denoising.cpp
1 issues
syntax error
Error

Line: 76

                  ASSERT_EQ(0, cvtest::norm(result, expected, NORM_L2));
}

TEST(Photo_DenoisingColored, regression)
{
    string folder = string(cvtest::TS::ptr()->get_data_path()) + "denoising/";
    string original_path = folder + "lena_noised_gaussian_sigma=10.png";
    string expected_path = folder + "lena_noised_denoised_lab12_tw=7_sw=21_h=10_h2=10.png";


            

Reported by Cppcheck.

modules/photo/test/test_denoising.cuda.cpp
1 issues
syntax error
Error

Line: 91

              ////////////////////////////////////////////////////////
// Fast Force Non local means

TEST(CUDA_FastNonLocalMeans, Regression)
{
    using cv::cuda::GpuMat;

    cv::Mat bgr  = readImage("../gpu/denoising/lena_noised_gaussian_sigma=20_multi_0.png", cv::IMREAD_COLOR);
    ASSERT_FALSE(bgr.empty());

            

Reported by Cppcheck.

modules/photo/test/test_hdr.cpp
1 issues
syntax error
Error

Line: 88

                  resp_file.close();
}

TEST(Photo_Tonemap, regression)
{
    string test_path = string(cvtest::TS::ptr()->get_data_path()) + "hdr/tonemap/";

    Mat img, expected, result;
    loadImage(test_path + "image.hdr", img);

            

Reported by Cppcheck.

modules/photo/test/test_inpaint.cpp
1 issues
syntax error
Error

Line: 117

                  ts->set_failed_test_info(cvtest::TS::OK);
}

TEST(Photo_Inpaint, regression) { CV_InpaintTest test; test.safe_run(); }

typedef testing::TestWithParam<tuple<int> > formats;

TEST_P(formats, 1c)
{

            

Reported by Cppcheck.

modules/photo/test/test_npr.cpp
1 issues
syntax error
Error

Line: 48

              
static const double numerical_precision = 100.;

TEST(Photo_NPR_EdgePreserveSmoothing_RecursiveFilter, regression)
{
    string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/";
    string original_path = folder + "test1.png";

    Mat source = imread(original_path, IMREAD_COLOR);

            

Reported by Cppcheck.

modules/stitching/perf/opencl/perf_stitch.cpp
1 issues
syntax error
Error

Line: 64

                  SANITY_CHECK_NOTHING();
}

OCL_PERF_TEST_P(stitch, b12, TEST_DETECTORS)
{
    UMat pano;

    vector<Mat> imgs;
    imgs.push_back( imread( getDataPath("stitching/b1.png") ) );

            

Reported by Cppcheck.