The following issues were found

modules/dnn/perf/perf_caffe.cpp
1 issues
syntax error
Error

Line: 70

                  return net;
}

PERF_TEST(AlexNet_caffe, CaffePerfTest)
{
    caffe::Net<float>* net = initNet("dnn/bvlc_alexnet.prototxt",
                                     "dnn/bvlc_alexnet.caffemodel");
    TEST_CYCLE() net->Forward();
    SANITY_CHECK_NOTHING();

            

Reported by Cppcheck.

modules/dnn/perf/perf_convolution.cpp
1 issues
syntax error
Error

Line: 669

                  SANITY_CHECK_NOTHING();
}

INSTANTIATE_TEST_CASE_P(/**/, Conv, Combine(
    ConvParamID::all(),
    dnnBackendsAndTargets(false, false)  // defined in ../test/test_common.hpp
));

} // namespace

            

Reported by Cppcheck.

modules/dnn/perf/perf_convolution1d.cpp
1 issues
syntax error
Error

Line: 158

                  SANITY_CHECK_NOTHING();
}

INSTANTIATE_TEST_CASE_P(/**/, Conv1D, Combine(
        Conv1DParamID::all(),
        dnnBackendsAndTargets(false, false)  // defined in ../test/test_common.hpp
));

} // namespace

            

Reported by Cppcheck.

modules/dnn/perf/perf_convolution3d.cpp
1 issues
syntax error
Error

Line: 177

                  SANITY_CHECK_NOTHING();
}

INSTANTIATE_TEST_CASE_P(/**/, Conv3D, Combine(
    Conv3DParamID::all(),
    dnnBackendsAndTargets(false, false)  // defined in ../test/test_common.hpp
));

} // namespace

            

Reported by Cppcheck.

modules/dnn/perf/perf_layer.cpp
1 issues
syntax error
Error

Line: 93

                  test_slice<4>(inputShape, begin, end);
}

INSTANTIATE_TEST_CASE_P(/**/, Layer_Slice, dnnBackendsAndTargets(false, false));

} // namespace

            

Reported by Cppcheck.

modules/dnn/perf/perf_net.cpp
1 issues
syntax error
Error

Line: 303

                  processNet("dnn/efficientdet-d0.pb", "dnn/efficientdet-d0.pbtxt", "", inp);
}

INSTANTIATE_TEST_CASE_P(/*nothing*/, DNNTestNetwork, dnnBackendsAndTargets());

} // namespace

            

Reported by Cppcheck.

modules/dnn/src/nms.cpp
1 issues
There is an unknown macro here somewhere. Configuration is required. If CV__DNN_INLINE_NS_BEGIN is a macro then please configure it.
Error

Line: 14

              #include <opencv2/imgproc.hpp>

namespace cv { namespace dnn {
CV__DNN_INLINE_NS_BEGIN

template <typename T>
static inline float rectOverlap(const T& a, const T& b)
{
    return 1.f - static_cast<float>(jaccardDistance(a, b));

            

Reported by Cppcheck.

modules/dnn/test/test_backends.cpp
1 issues
syntax error
Error

Line: 542

                  expectNoFallbacksFromCUDA(net);
}

INSTANTIATE_TEST_CASE_P(/*nothing*/, DNNTestNetwork, dnnBackendsAndTargets(true, true, false, true, true));

}} // namespace

            

Reported by Cppcheck.

modules/dnn/test/test_caffe_importer.cpp
1 issues
syntax error
Error

Line: 224

                  normAssert(ref, out, "", l1, lInf);
}

INSTANTIATE_TEST_CASE_P(/**/, Reproducibility_AlexNet, Combine(testing::Bool(),
                        testing::ValuesIn(getAvailableTargets(DNN_BACKEND_OPENCV))));

TEST(Reproducibility_FCN, Accuracy)
{
    applyTestTag(CV_TEST_TAG_LONG, CV_TEST_TAG_DEBUG_VERYLONG, CV_TEST_TAG_MEMORY_2GB);

            

Reported by Cppcheck.

modules/dnn/test/test_googlenet.cpp
1 issues
syntax error
Error

Line: 152

                  normAssert(outs[0], ref, "", 1E-4, 1E-2);
}

INSTANTIATE_TEST_CASE_P(/**/, Reproducibility_GoogLeNet,
    testing::ValuesIn(getAvailableTargets(DNN_BACKEND_OPENCV)));

}} // namespace

            

Reported by Cppcheck.