The following issues were found

modules/ml/test/test_save_load.cpp
1 issues
syntax error
Error

Line: 97

                  ML_Legacy_Param(CV_SVMSGD, "waveform"),
};

INSTANTIATE_TEST_CASE_P(/**/, ML_Legacy_Params, testing::ValuesIn(param_list));

/*TEST(ML_SVM, throw_exception_when_save_untrained_model)
{
    Ptr<cv::ml::SVM> svm;
    string filename = tempfile("svm.xml");

            

Reported by Cppcheck.

modules/ml/test/test_svmsgd.cpp
1 issues
syntax error
Error

Line: 114

                  ML_SVMSGD_Param(UNIFORM_DIFFERENT_SCALES, 100, 0.01),
};

INSTANTIATE_TEST_CASE_P(/**/, ML_SVMSGD_Params, testing::ValuesIn(params_list));

//==================================================================================================

TEST(ML_SVMSGD, twoPoints)
{

            

Reported by Cppcheck.

modules/ml/test/test_svmtrainauto.cpp
1 issues
syntax error
Error

Line: 69

              
//==================================================================================================

TEST(ML_SVM, trainauto)
{
    const int datasize = 100;
    cv::Ptr<TrainData> data = makeRandomData(datasize);
    ASSERT_TRUE(data);
    cv::Ptr<SVM> svm = SVM::create();

            

Reported by Cppcheck.

modules/objdetect/perf/opencl/perf_cascades.cpp
1 issues
syntax error
Error

Line: 15

              
#ifdef HAVE_OPENCL

OCL_PERF_TEST_P(Cascade_Image_MinSize, CascadeClassifier,
                 testing::Combine(
                    testing::Values( string("cv/cascadeandhog/cascades/haarcascade_frontalface_alt.xml"),
                                     string("cv/cascadeandhog/cascades/haarcascade_frontalface_alt2.xml"),
                                     string("cv/cascadeandhog/cascades/lbpcascade_frontalface.xml") ),
                    testing::Values( string("cv/shared/lena.png"),

            

Reported by Cppcheck.

modules/objdetect/perf/opencl/perf_hogdetect.cpp
1 issues
syntax error
Error

Line: 72

                  }
};

OCL_PERF_TEST(HOGFixture, HOG)
{
    UMat src;
    imread(getDataPath("gpu/hog/road.png"), cv::IMREAD_GRAYSCALE).copyTo(src);
    ASSERT_FALSE(src.empty());


            

Reported by Cppcheck.

modules/objdetect/perf/perf_qrcode_pipeline.cpp
1 issues
syntax error
Error

Line: 106

              }
#endif

INSTANTIATE_TEST_CASE_P(/*nothing*/, Perf_Objdetect_QRCode,
    ::testing::Values(
        "version_1_down.jpg", "version_1_left.jpg", "version_1_right.jpg", "version_1_up.jpg", "version_1_top.jpg",
        "version_5_down.jpg", "version_5_left.jpg", "version_5_right.jpg", "version_5_up.jpg", "version_5_top.jpg",
        "russian.jpg", "kanji.jpg", "link_github_ocv.jpg", "link_ocv.jpg", "link_wiki_cv.jpg"
    )

            

Reported by Cppcheck.

modules/objdetect/test/opencl/test_hogdetector.cpp
1 issues
syntax error
Error

Line: 78

                  }
};

OCL_TEST_P(HOG, GetDescriptors)
{
    HOGDescriptor hog;
    hog.gammaCorrection = true;

    hog.setSVMDetector(hog.getDefaultPeopleDetector());

            

Reported by Cppcheck.

modules/objdetect/test/test_cascadeandhog.cpp
1 issues
syntax error
Error

Line: 498

              }

//----------------------------------------------- HOGDetectorReadWriteTest -----------------------------------
TEST(Objdetect_HOGDetectorReadWrite, regression)
{
    // Inspired by bug #2607
    Mat img;
    img = imread(cvtest::TS::ptr()->get_data_path() + "/cascadeandhog/images/karen-and-rob.png");
    ASSERT_FALSE(img.empty());

            

Reported by Cppcheck.

modules/photo/perf/opencl/perf_denoising.cpp
1 issues
syntax error
Error

Line: 32

                  SANITY_CHECK(result, 1);
}

OCL_PERF_TEST(Photo, DenoisingColored)
{
    Mat _original = imread(getDataPath("cv/denoising/lena_noised_gaussian_sigma=10.png"));
    ASSERT_FALSE(_original.empty()) << "Could not load input image";

    UMat result(_original.size(), _original.type()), original;

            

Reported by Cppcheck.

modules/photo/perf/perf_cuda.cpp
1 issues
syntax error
Error

Line: 62

              
DEF_PARAM_TEST(Sz_Depth_Cn_WinSz_BlockSz, cv::Size, MatDepth, MatCn, int, int);

PERF_TEST_P(Sz_Depth_Cn_WinSz_BlockSz, CUDA_NonLocalMeans,
            Combine(CUDA_DENOISING_IMAGE_SIZES,
                    Values<MatDepth>(CV_8U),
                    CUDA_CHANNELS_1_3,
                    Values(21),
                    Values(5)))

            

Reported by Cppcheck.