The following issues were found

modules/imgproc/perf/perf_resize.cpp
1 issues
syntax error
Error

Line: 36

                  }
}

PERF_TEST_P(MatInfo_Size_Size, resizeUpLinear,
            testing::Values(
                MatInfo_Size_Size_t(CV_8UC1, szVGA, szqHD),
                MatInfo_Size_Size_t(CV_8UC2, szVGA, szqHD),
                MatInfo_Size_Size_t(CV_8UC3, szVGA, szqHD),
                MatInfo_Size_Size_t(CV_8UC4, szVGA, szqHD),

            

Reported by Cppcheck.

modules/imgproc/perf/perf_sepfilters.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: 10

              
#define FILTER_SRC_SIZES szODD, szQVGA, szVGA

CV_ENUM(BorderType3x3, BORDER_REPLICATE, BORDER_CONSTANT)
CV_ENUM(BorderType3x3ROI, BORDER_DEFAULT, BORDER_REPLICATE|BORDER_ISOLATED, BORDER_CONSTANT|BORDER_ISOLATED)

CV_ENUM(BorderType, BORDER_REPLICATE, BORDER_CONSTANT, BORDER_REFLECT, BORDER_REFLECT101)
CV_ENUM(BorderTypeROI, BORDER_DEFAULT, BORDER_REPLICATE|BORDER_ISOLATED, BORDER_CONSTANT|BORDER_ISOLATED, BORDER_REFLECT|BORDER_ISOLATED, BORDER_REFLECT101|BORDER_ISOLATED)


            

Reported by Cppcheck.

modules/imgproc/perf/perf_threshold.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: 8

              
namespace opencv_test {

CV_ENUM(ThreshType, THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV)

typedef tuple<Size, MatType, ThreshType> Size_MatType_ThreshType_t;
typedef perf::TestBaseWithParam<Size_MatType_ThreshType_t> Size_MatType_ThreshType;

PERF_TEST_P(Size_MatType_ThreshType, threshold,

            

Reported by Cppcheck.

modules/imgproc/perf/perf_warp.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: 10

              
enum{HALF_SIZE=0, UPSIDE_DOWN, REFLECTION_X, REFLECTION_BOTH};

CV_ENUM(BorderMode, BORDER_CONSTANT, BORDER_REPLICATE)
CV_ENUM(InterType, INTER_NEAREST, INTER_LINEAR)
CV_ENUM(RemapMode, HALF_SIZE, UPSIDE_DOWN, REFLECTION_X, REFLECTION_BOTH)

typedef TestBaseWithParam< tuple<Size, InterType, BorderMode> > TestWarpAffine;
typedef TestBaseWithParam< tuple<Size, InterType, BorderMode> > TestWarpPerspective;

            

Reported by Cppcheck.

modules/imgproc/src/filter.simd.hpp
1 issues
syntax error
Error

Line: 87

              
#ifndef CV_CPU_OPTIMIZATION_DECLARATIONS_ONLY

typedef int CV_DECL_ALIGNED(1) unaligned_int;
#define VEC_ALIGN CV_MALLOC_ALIGN

int FilterEngine__start(FilterEngine& this_, const Size &_wholeSize, const Size &sz, const Point &ofs)
{
    CV_INSTRUMENT_REGION();

            

Reported by Cppcheck.

modules/imgproc/src/imgwarp.cpp
1 issues
syntax error
Error

Line: 439

              
#if CV_SIMD128

typedef unsigned short CV_DECL_ALIGNED(1) unaligned_ushort;
typedef int CV_DECL_ALIGNED(1) unaligned_int;

struct RemapVec_8u
{
    int operator()( const Mat& _src, void* _dst, const short* XY,

            

Reported by Cppcheck.

modules/imgproc/src/opencl/boxFilter.cl
1 issues
failed to expand 'EXTRAPOLATE', it is invalid to use a preprocessor directive as macro parameter
Error

Line: 151

                      int selected_col = pos.x, selected_row = pos.y;

        EXTRAPOLATE(selected_col, selected_row,
#ifdef BORDER_ISOLATED
            srcCoords.x1, srcCoords.y1,
#else
            0, 0,
#endif
            srcCoords.x2, srcCoords.y2);

            

Reported by Cppcheck.

modules/imgproc/src/opencl/filterSmall.cl
1 issues
failed to expand 'LOOP', it is invalid to use a preprocessor directive as macro parameter
Error

Line: 366

                          if (!isBorder(srcCoords, srcPos, PX_LOAD_NUM_PX))
            {
                PX_LOAD_FLOAT_VEC_TYPE p = readSrcPixelGroup(srcPos, srcptr, src_step, srcCoords);
#ifdef SQR
                *((PX_LOAD_FLOAT_VEC_TYPE *)&privateData[py][px * PX_LOAD_NUM_PX]) = p * p;
#else
                *((PX_LOAD_FLOAT_VEC_TYPE *)&privateData[py][px * PX_LOAD_NUM_PX]) = p;
#endif
            }

            

Reported by Cppcheck.

modules/imgproc/src/smooth.simd.hpp
1 issues
There is an unknown macro here somewhere. Configuration is required. If CV_CPU_OPTIMIZATION_NAMESPACE_BEGIN is a macro then please configure it.
Error

Line: 55

              #include "opencv2/core/softfloat.hpp"

namespace cv {
CV_CPU_OPTIMIZATION_NAMESPACE_BEGIN
// forward declarations
template <typename RFT>
void GaussianBlurFixedPoint(const Mat& src, Mat& dst,
                            const RFT* fkx, int fkx_size,
                            const RFT* fky, int fky_size,

            

Reported by Cppcheck.

modules/imgproc/test/ocl/test_accumulate.cpp
1 issues
syntax error
Error

Line: 105

              
typedef AccumulateBase Accumulate;

OCL_TEST_P(Accumulate, Mat)
{
    for (int i = 0; i < test_loop_times; ++i)
    {
        random_roi();


            

Reported by Cppcheck.