Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

getting error when run mingw32-make: cap_dshow.cpp file error

HI, After setting necessary things, When I run mingw32-make in command line, up to 41% Many things were gone fine with few warnings. But at 42%, it stopped due to error in module/videoio/cmakefiles/opencv_videoio.dir/src/cap_dshow.cpp.obj failed

After searching this website, someone recommended to check for broken Cap_dshow.cpp (missing "/" on comment, etc). when I go through the Cap_dshow.cpp file, i think something missing in the file but I could not able to recognize the error. Can anyone give me working cap_dshow.cpp file to replace the error file? Or could be there any other issue?

my OS: MS Windows 7 32 bit Opencv: opencv-4.0.0-vc14_vc15.exe

I have attached pictures for your reference.

advance thanks

C:\fakepath\ERROR_WHILE_minGW_MAKE_3.JPG C:\fakepath\ERROR_WHILE_minGW_MAKE.JPG

click to hide/show revision 2
None

updated 2018-12-13 01:58:55 -0600

berak gravatar image

getting error when run mingw32-make: cap_dshow.cpp file error

HI, After setting necessary things, When I run mingw32-make in command line, up to 41% Many things were gone fine with few warnings. But at 42%, it stopped due to error in module/videoio/cmakefiles/opencv_videoio.dir/src/cap_dshow.cpp.obj failed

After searching this website, someone recommended to check for broken Cap_dshow.cpp (missing "/" on comment, etc). when I go through the Cap_dshow.cpp file, i think something missing in the file but I could not able to recognize the error. Can anyone give me working cap_dshow.cpp file to replace the error file? Or could be there any other issue?

my OS: MS Windows 7 32 bit Opencv: opencv-4.0.0-vc14_vc15.exe

I have attached pictures for your reference.

advance thanks

C:\fakepath\ERROR_WHILE_minGW_MAKE_3.JPG C:\fakepath\ERROR_WHILE_minGW_MAKE.JPG

getting error when run mingw32-make: cap_dshow.cpp file error

HI, After setting necessary things, When I run mingw32-make in command line, up to 41% Many things were gone fine with few warnings. But at 42%, it stopped due to error in module/videoio/cmakefiles/opencv_videoio.dir/src/cap_dshow.cpp.obj failed

After searching this website, someone recommended to check for broken Cap_dshow.cpp (missing "/" on comment, etc). when I go through the Cap_dshow.cpp file, i think something missing in the file but I could not able to recognize the error. Can anyone give me working cap_dshow.cpp file to replace the error file? Or could be there any other issue?

my OS: MS Windows 7 32 bit Opencv: opencv-4.0.0-vc14_vc15.exe

advance thanks

Added:

Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7") Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2") libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-4.0.0-libjpeg-turbo Looking for Mfapi.h Looking for Mfapi.h - found Could not find OpenBLAS include. Turning OpenBLAS_FOUND off Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off Could NOT find BLAS (missing: BLAS_LIBRARIES) LAPACK requires BLAS A library with LAPACK API not found. Please specify library location. Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file OpenCV Python: during development append to PYTHONPATH: D:/opencv/build/my_build/python_loader

Excluding from source files list: <build>/modules/core/test/test_intrin128.avx2.cpp
Excluding from source files list: <build>/modules/core/test/test_intrin256.avx2.cpp
Excluding from source files list: modules/imgproc/src/filter.avx2.cpp
Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx2.cpp
Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx512_skx.cpp
Excluding from source files list: modules/features2d/src/fast.avx2.cpp
Excluding from source files list: modules/calib3d/src/undistort.avx2.cpp

General configuration for OpenCV 4.0.0 =====================================

Version control: unknown

Platform: Timestamp: 2018-12-12T18:01:01Z Host: Windows 6.1.7600 x86 CMake: 3.13.1 CMake generator: MinGW Makefiles CMake build tool: C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/bin/mingw32-make.exe Configuration: Release

CPU/HW features: Baseline: SSE SSE2 requested: SSE2 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX requested: SSE4_1 SSE4_2 AVX FP16 SSE4_1 (8 files): + SSE3 SSSE3 SSE4_1 SSE4_2 (2 files): + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (1 files): + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (5 files): + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX

C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/g++.exe (ver 8.1.0)
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG

C Compiler:                  C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe    

C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG

Linker flags (Release):      -Wl,--gc-sections  
Linker flags (Debug):        -Wl,--gc-sections  
ccache:                      NO
Precompiled headers:         YES
Extra dependencies:
3rdparty dependencies:

OpenCV modules: To be built: calib3d core dnn features2d flann gapi highgui imgcodecs imgproc java_bindings_generator ml objdetect photo python_bindings_generator stitching ts video videoio Disabled: world Disabled by dependency: - Unavailable: java js python2 python3 Applications: tests perf_tests apps Documentation: NO Non-free algorithms: NO

Windows RT support: NO

GUI: Win32 UI: YES VTK support: NO

Media I/O: ZLib: build (ver 1.2.11) JPEG: build-libjpeg-turbo (ver 1.5.3-62) WEBP: build (ver encoder: 0x020e) PNG: build (ver 1.6.35) TIFF: build (ver 42 - 4.0.9) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) HDR: YES SUNRASTER: YES PXM: YES PFM: YES

Video I/O: DC1394: NO FFMPEG: YES (prebuilt binaries) avcodec: YES (ver 58.35.100) avformat: YES (ver 58.20.100) avutil: YES (ver 56.22.100) swscale: YES (ver 5.3.100) avresample: YES (ver 4.0.0) GStreamer: NO DirectShow: YES Media Foundation: YES

Parallel framework: none

Trace: YES (built-in)

Other third-party libraries: Lapack: NO Eigen: NO Custom HAL: NO Protobuf: build (3.5.1)

OpenCL: YES (no extra features) Include path: D:/opencv/sources/3rdparty/include/opencl/1.2 Link libraries: Dynamic load

Python (for build): NO

Java:
ant: NO JNI: NO Java wrappers: NO Java tests: NO

Install to: D:/opencv/build/my_build/install

Configuring done

Kindly bare with me for conjusted code.

click to hide/show revision 4
None

updated 2018-12-13 03:16:00 -0600

berak gravatar image

getting error when run mingw32-make: cap_dshow.cpp file error

HI, After setting necessary things, When I run mingw32-make in command line, up to 41% Many things were gone fine with few warnings. But at 42%, it stopped due to error in module/videoio/cmakefiles/opencv_videoio.dir/src/cap_dshow.cpp.obj failed

After searching this website, someone recommended to check for broken Cap_dshow.cpp (missing "/" on comment, etc). when I go through the Cap_dshow.cpp file, i think something missing in the file but I could not able to recognize the error. Can anyone give me working cap_dshow.cpp file to replace the error file? Or could be there any other issue?

my OS: MS Windows 7 32 bit Opencv: opencv-4.0.0-vc14_vc15.exe

advance thanks

Added:

Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2")
libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-4.0.0-libjpeg-turbo
Looking for Mfapi.h
Looking for Mfapi.h - found
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find BLAS (missing: BLAS_LIBRARIES)
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH: D:/opencv/build/my_build/python_loader 

Excluding from source files list: <build>/modules/core/test/test_intrin128.avx2.cpp
<BUILD>/modules/core/test/test_intrin128.avx2.cpp Excluding from source files list: <build>/modules/core/test/test_intrin256.avx2.cpp
<BUILD>/modules/core/test/test_intrin256.avx2.cpp Excluding from source files list: modules/imgproc/src/filter.avx2.cpp
Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx2.cpp
<BUILD>/modules/dnn/layers/layers_common.avx2.cpp Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx512_skx.cpp
<BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp Excluding from source files list: modules/features2d/src/fast.avx2.cpp
Excluding from source files list: modules/calib3d/src/undistort.avx2.cpp

 General configuration for OpenCV 4.0.0 =====================================

Version control: unknown

unknown Platform: Timestamp: 2018-12-12T18:01:01Z Host: Windows 6.1.7600 x86 CMake: 3.13.1 CMake generator: MinGW Makefiles CMake build tool: C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/bin/mingw32-make.exe Configuration: Release

Release CPU/HW features: Baseline: SSE SSE2 requested: SSE2 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX requested: SSE4_1 SSE4_2 AVX FP16 SSE4_1 (8 files): + SSE3 SSSE3 SSE4_1 SSE4_2 (2 files): + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (1 files): + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (5 files): + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX

AVX C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/g++.exe (ver 8.1.0)
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG

 C Compiler: C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe
 C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -mfpmath=sse -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
 C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -mfpmath=sse -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
 Linker flags (Release): -Wl,--gc-sections
 Linker flags (Debug): -Wl,--gc-sections
 ccache: NO
 Precompiled headers: YES
 Extra dependencies:
 3rdparty dependencies:

OpenCV modules: To be built: calib3d core dnn features2d flann gapi highgui imgcodecs imgproc java_bindings_generator ml objdetect photo python_bindings_generator stitching ts video videoio Disabled: world Disabled by dependency: - Unavailable: java js python2 python3 Applications: tests perf_tests apps Documentation: NO Non-free algorithms: NO

NO Windows RT support: NO

NO GUI: Win32 UI: YES VTK support: NO

NO Media I/O: ZLib: build (ver 1.2.11) JPEG: build-libjpeg-turbo (ver 1.5.3-62) WEBP: build (ver encoder: 0x020e) PNG: build (ver 1.6.35) TIFF: build (ver 42 - 4.0.9) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) HDR: YES SUNRASTER: YES PXM: YES PFM: YES

YES Video I/O: DC1394: NO FFMPEG: YES (prebuilt binaries) avcodec: YES (ver 58.35.100) avformat: YES (ver 58.20.100) avutil: YES (ver 56.22.100) swscale: YES (ver 5.3.100) avresample: YES (ver 4.0.0) GStreamer: NO DirectShow: YES Media Foundation: YES

YES Parallel framework: none

none Trace: YES (built-in)

(built-in) Other third-party libraries: Lapack: NO Eigen: NO Custom HAL: NO Protobuf: build (3.5.1)

(3.5.1) OpenCL: YES (no extra features) Include path: D:/opencv/sources/3rdparty/include/opencl/1.2 Link libraries: Dynamic load

load Python (for build): NO

NO Java:
ant: NO JNI: NO Java wrappers: NO Java tests: NO

NO Install to: D:/opencv/build/my_build/install

D:/opencv/build/my_build/install ----------------------------------------------------------------- Configuring done

done

Kindly bare with me for conjusted code.

getting error when run mingw32-make: cap_dshow.cpp file error

HI, After setting necessary things, When I run mingw32-make in command line, up to 41% Many things were gone fine with few warnings. But at 42%, it stopped due to error in module/videoio/cmakefiles/opencv_videoio.dir/src/cap_dshow.cpp.obj failed

After searching this website, someone recommended to check for broken Cap_dshow.cpp (missing "/" on comment, etc). when I go through the Cap_dshow.cpp file, i think something missing in the file but I could not able to recognize the error. Can anyone give me working cap_dshow.cpp file to replace the error file? Or could be there any other issue?

my OS: MS Windows 7 32 bit Opencv: opencv-4.0.0-vc14_vc15.exe

advance thanks

Added:

Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2")
libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-4.0.0-libjpeg-turbo
Looking for Mfapi.h
Looking for Mfapi.h - found
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find BLAS (missing: BLAS_LIBRARIES) 
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH: D:/opencv/build/my_build/python_loader      

Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx2.cpp         
Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx2.cpp     
Excluding from source files list: modules/imgproc/src/filter.avx2.cpp      
Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp      
Excluding from source files list: modules/imgproc/src/resize.avx2.cpp     
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx2.cpp       
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp     
Excluding from source files list: modules/features2d/src/fast.avx2.cpp      
Excluding from source files list: modules/calib3d/src/undistort.avx2.cpp      

    General configuration for OpenCV 4.0.0 =====================================
  Version control:               unknown

  Platform:
    Timestamp:                   2018-12-12T18:01:01Z
    Host:                        Windows 6.1.7600 x86
    CMake:                       3.13.1
    CMake generator:             MinGW Makefiles
    CMake build tool:            C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/bin/mingw32-make.exe
    Configuration:               Release

  CPU/HW features:
    Baseline:                    SSE SSE2
      requested:                 SSE2
    Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX
      requested:                 SSE4_1 SSE4_2 AVX FP16
      SSE4_1 (8 files):          + SSE3 SSSE3 SSE4_1
      SSE4_2 (2 files):          + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (1 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (5 files):             + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/g++.exe  (ver 8.1.0)   
    C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG               

    C Compiler:                  C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe    

    C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG

    Linker flags (Release):      -Wl,--gc-sections  
    Linker flags (Debug):        -Wl,--gc-sections  
    ccache:                      NO
    Precompiled headers:         YES
    Extra dependencies:
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc java_bindings_generator ml objdetect photo python_bindings_generator stitching ts video videoio
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 java js python2 python3
    Applications:                tests perf_tests apps
    Documentation:               NO
    Non-free algorithms:         NO

  Windows RT support:            NO

  GUI: 
    Win32 UI:                    YES
    VTK support:                 NO

  Media I/O: 
    ZLib:                        build (ver 1.2.11)
    JPEG:                        build-libjpeg-turbo (ver 1.5.3-62)
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         build (ver 1.6.35)
    TIFF:                        build (ver 42 - 4.0.9)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
    PFM:                         YES

  Video I/O:
    DC1394:                      NO
    FFMPEG:                      YES (prebuilt binaries)
      avcodec:                   YES (ver 58.35.100)
      avformat:                  YES (ver 58.20.100)
      avutil:                    YES (ver 56.22.100)
      swscale:                   YES (ver 5.3.100)
      avresample:                YES (ver 4.0.0)
    GStreamer:                   NO
    DirectShow:                  YES
    Media Foundation:            YES

  Parallel framework:            none

  Trace:                         YES (built-in)

  Other third-party libraries:
    Lapack:                      NO
    Eigen:                       NO
    Custom HAL:                  NO
    Protobuf:                    build (3.5.1)

  OpenCL:                        YES (no extra features)
    Include path:                D:/opencv/sources/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load

  Python (for build):            NO

  Java:                          
    ant:                         NO
    JNI:                         NO
    Java wrappers:               NO
    Java tests:                  NO

  Install to:                    D:/opencv/build/my_build/install
-----------------------------------------------------------------

Configuring done

Kindly bare with me for conjusted code.

Added:

I have posted all the warnings (13) for your reference. The size looks huge but hope you can easily understand the warnings (13) and error (1 - at the end). I have marked and devised the errors for your convenience.

SL NO (WARNING NUMBER). FILE NAME (below)

  1. jconfig.h:
  2. common.cc
  3. alloc.cpp
  4. bindings_utils.cpp
  5. channels.cpp
  6. lda.cpp
  7. matrix_operations.cpp
  8. ocl.cpp (really huge errors in this file - )
  9. featureselect.cpp
  10. histogram.cpp
  11. cap_dshow.hpp
  12. videoio\src\container_avi.cpp, include/opencv2/base.hpp (huge errors in this file)
  13. \videoio\src\cap_dshow.cpp (huge errors in this file)

LASTLY: ERROR AND STOPPED.

ERROR LISTS:

// ------------------------------------------- 1ST WARNING ------------------------------------------- //

[ 7%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jpeg_12.c.obj [ 7%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jpeg.c.obj

In file included from D:/opencv/sources/3rdparty/libjpeg-turbo/src/jpeglib.h:29, from D:\opencv\sources\3rdparty\libtiff\tif_jpeg.c:91: D:/opencv/build/my_build/3rdparty/libjpeg-turbo/jconfig.h:45: warning: "XMD_H" redefined #define XMD_H /* prevent jmorecfg.h from redefining it */

D:\opencv\sources\3rdparty\libtiff\tif_jpeg.c:67: note: this is the location of the previous definition # define XMD_H 1

[ 8%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_luv.c.obj [ 8%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_lzma.c.obj [ 8%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_lzw.c.obj

// ------------------------------------------- 2ND WARNING ------------------------------------------- //

[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream_impl_lit [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message_lite.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/repeated_field.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/atomicops_internals_x8 [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/bytestream.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/common.cc.obj

D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc: In member function 'google::protobuf::internal: :LogMessage::operator<<(long long int)': D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:246:45: warning: unknown conversion type charact DECLARE_STREAM_OPERATOR(long long , "%" GOOGLE_LL_FORMAT "d") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \ ^~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:246:45: warning: too many arguments for format [ DECLARE_STREAM_OPERATOR(long long , "%" GOOGLE_LL_FORMAT "d") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \ ^~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc: In member function 'google::protobuf::internal: :LogMessage::operator<<(long long unsigned int)': D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:247:45: warning: unknown conversion type charact DECLARE_STREAM_OPERATOR(unsigned long long, "%" GOOGLE_LL_FORMAT "u") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \ ^~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:247:45: warning: too many arguments for format [ DECLARE_STREAM_OPERATOR(unsigned long long, "%" GOOGLE_LL_FORMAT "u") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \

                                  ^~~~~~

[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/int128.cc.obj [ 28%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.cc.obj [ 28%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/once.cc.obj

// ------------------------------------------- 3RD WARNING ------------------------------------------- //

[ 33%] Building CXX object modules/CMakeFiles/ade.dir/__/3rdparty/ade/ade-0.1.1d/sources/ade/source/topological_sort.cpp.o [ 33%] Linking CXX static library ..\lib\libade.a [ 33%] Built target ade Scanning dependencies of target opencv_core [ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.obj [ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.obj

In file included from D:/opencv/sources/modules/core/include/opencv2/core.hpp:54, from D:/opencv/sources/modules/core/include/opencv2/core/utility.hpp:56, from D:\opencv\sources\modules\core\src\precomp.hpp:49, from D:\opencv\sources\modules\core\src\alloc.cpp:43: D:\opencv\sources\modules\core\src\alloc.cpp: In function 'void* cv::OutOfMemoryError(size_t)': D:\opencv\sources\modules\core\src\alloc.cpp:55:29: warning: unknown conversion type character 'l' in format [-Wformat=] CV_Error_(CV_StsNoMem, ("Failed to allocate %llu bytes", (unsigned long long)size)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\core\src\alloc.cpp:55:29: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(CV_StsNoMem, ("Failed to allocate %llu bytes", (unsigned long long)size)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ )

                                                         ^~~~

[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.obj

// ------------------------------------------- 4TH WARNING ------------------------------------------- //

[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/batch_distance.cpp.obj [ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/bindings_utils.cpp.obj

D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputArray(cv::InputArray) D:\opencv\sources\modules\core\src\bindings_utils.cpp:20:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:20:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:21:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:21:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:27:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:27:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputArrayOfArrays(cv::Inp D:\opencv\sources\modules\core\src\bindings_utils.cpp:50:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:50:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:51:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:51:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:57:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:57:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputOutputArray(cv::Input D:\opencv\sources\modules\core\src\bindings_utils.cpp:87:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:87:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:88:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:88:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:94:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:94:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputOutputArrayOfArrays(c D:\opencv\sources\modules\core\src\bindings_utils.cpp:117:30: warning: unknown conversion type character 'l' in format [ ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:117:30: warning: too many arguments for format [-Wformat-extra-arg D:\opencv\sources\modules\core\src\bindings_utils.cpp:118:30: warning: unknown conversion type character 'l' in format [ ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:118:30: warning: too many arguments for format [-Wformat-extra-arg D:\opencv\sources\modules\core\src\bindings_utils.cpp:124:30: warning: unknown conversion type character 'l' in format [ ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:124:30: warning: too many arguments for format [-Wformat-extra-arg

[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/channels.cpp.obj

// ------------------------------------------- 5TH WARNING ------------------------------------------- //

D:\opencv\sources\modules\core\src\channels.cpp: In function 'bool cv::ocl_mixChannels(cv::InputArrayOfArrays, cv::Input ': D:\opencv\sources\modules\core\src\channels.cpp:240:27: warning: unknown conversion type character 'z' in format [-Wform declsrc += format("DECLARE_INPUT_MAT(%zu)", i); ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:240:27: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:241:27: warning: unknown conversion type character 'z' in format [-Wform decldst += format("DECLARE_OUTPUT_MAT(%zu)", i); ^~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:241:27: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:242:29: warning: unknown conversion type character 'z' in format [-Wform indexdecl += format("DECLARE_INDEX(%zu)", i); ^~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:242:29: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:243:28: warning: unknown conversion type character 'z' in format [-Wform declproc += format("PROCESS_ELEM(%zu)", i); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:243:28: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:244:26: warning: unknown conversion type character 'z' in format [-Wform declcn += format(" -D scn%zu=%d -D dcn%zu=%d", i, src[src_idx].channels(), i, dst[dst_idx].channels()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:244:26: warning: unknown conversion type character 'z' in format [-Wform D:\opencv\sources\modules\core\src\channels.cpp:244:26: warning: too many arguments for format [-Wformat-extra-args]

[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/kmeans.cpp.obj [ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lapack.cpp.obj [ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lda.cpp.obj

// ------------------------------------------- 6TH WARNING ------------------------------------------- //

D:\opencv\sources\modules\core\src\lda.cpp: In static member function 'static cv::Mat cv::LDA::subspaceProject(cv::Input

D:\opencv\sources\modules\core\src\lda.cpp:187:39: warning: unknown conversion type character 'z' in format [-Wformat=] String error_message = format("Wrong mean shape for the given data matrix. Expected %d, but was %zu.", d, mean. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\lda.cpp:187:39: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\lda.cpp: In static member function 'static cv::Mat cv::LDA::subspaceReconstruct(cv::I y)': D:\opencv\sources\modules\core\src\lda.cpp:225:39: warning: unknown conversion type character 'z' in format [-Wformat=] String error_message = format("Wrong mean shape for the given eigenvector matrix. Expected %d, but was %zu.", W ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\lda.cpp:225:39: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\lda.cpp: In member function 'void cv::LDA::lda(cv::InputArrayOfArrays, cv::InputArray D:\opencv\sources\modules\core\src\lda.cpp:1079:39: warning: unknown conversion type character 'z' in format [-Wformat=] String error_message = format("The number of samples must equal the number of labels. Given %zu labels, %d samp ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\lda.cpp:1079:39: warning: too many arguments for format [-Wformat-extra-args]

[ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/logger.cpp.obj [ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lpsolver.cpp.obj

// ------------------------------------------- 7TH WARNING ------------------------------------------- //

[ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_expressions.cpp.obj [ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_iterator.cpp.obj [ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_operations.cpp.obj D:\opencv\sources\modules\core\src\matrix_operations.cpp: In function 'bool cv::ocl_reduce(cv::InputArray, cv::OutputArr D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: unknown conversion type character 'z' in forma cv::String build_opt = format("-D OP_REDUCE_PRE -D BUF_COLS=%d -D TILE_HEIGHT=%zu -D %s -D dim=1" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ " -D cn=%d -D ddepth=%d" ~~~~~~~~~~~~~~~~~~~~~~~~ " -D srcT=%s -D bufT=%s -D dstT=%s" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ " -D convertToWT=%s -D convertToBufT=%s -D convertToDT=%s%s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: format '%s' expects argument of type 'char', nsigned int'} [-Wformat=] D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: format '%d' expects argument of type 'int', bu ormat=] D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: format '%s' expects argument of type 'char', ] D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: too many arguments for format [-Wformat-extra-

[ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_sparse.cpp.obj

// ------------------------------------------- 8TH WARNING ------------------------------------------- //

D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'bool cv::ocl::Kernel::Impl::run(int, size_t, size_t, b D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: unknown conversion type character 'z' in format [-Wformat=] (localsize ? cv::format("%zux%zux%zu", localsize[0], (dims > 1 ? localsize[1] : 1), (dims > 2 ? ).c_str(), ^~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: unknown conversion type character 'z' in format [-Wformat=] cv::String msg = cv::format("clEnqueueNDRangeKernel('%s', dims=%d, globalsize=%zux%zux%zu, localsize=%s) sync=% ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: format '%s' expects argument of type 'char', but argument [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: format '%s' expects argument of type 'char', but argument D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::ProgramSource::Impl::updateHash(const char D:\opencv\sources\modules\core\src\ocl.cpp:3334:34: warning: unknown conversion type character 'j' in format [-Wformat=] sourceHash_ = cv::format("%08jx", (uintmax_t)hash); ^~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:3334:34: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::OpenCLBufferPoolImpl::_allocateBufferEntry try&, size_t)': D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:9: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:9: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:9: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual bool cv::ocl::OpenCLAllocator::allocate(cv::UMat s) const': D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)u->size, u->origdata, (void)handle).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)u->size, u->origdata, (void)handle).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: format '%p' expects argument of type 'void*', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                         (long long int)u->size, u->origdata, (void*)handle).c_str());
                         ~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: format '%p' expects argument of type 'void*', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                         (long long int)u->size, u->origdata, (void*)handle).c_str());
                         ~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::OpenCLAllocator::deallocate_(cv::UMatData* D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::map(cv::UMatData* D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::unmap(cv::UMatDat D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::upload(cv::UMatDa nst size_t, const size_t, const size_t) const': D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)dstrawofs, (long long int)u->size, alignedPtr.getAlignedPtr()) ~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)dstrawofs, (long long int)u->size, alignedPtr.getAlignedPtr()) ~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::copy(cv::UMatData nst size_t, const size_t, const size_t, const size_t, bool) const': D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::Image2D::Impl::init(const cv::UMat&, bool, D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)(src.cols * src.rows * src.elemSize()), (void)devData ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)(src.cols * src.rows * src.elemSize()), (void)devData ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~

// ------------------------------------------- 9TH WARNING ------------------------------------------- //

[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/emd.cpp.obj [ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/featureselect.cpp.obj

D:\opencv\sources\modules\imgproc\src\featureselect.cpp: In function 'bool cv::ocl_goodFeaturesToTrack(cv::InputArray, cv::Ou :InputArray, int, int, bool, double)': D:\opencv\sources\modules\imgproc\src\featureselect.cpp:129:31: warning: unknown conversion type character 'z' in format [-Wf format("-D OP_MAX_EIGEN_VAL -D WGS=%zu -D WGS2_ALIGNED=%d -D groupnum=%d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\imgproc\src\featureselect.cpp:129:31: warning: too many arguments for format [-Wformat-extra-args]

[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/filter.cpp.obj

// ------------------------------------------- 10TH WARNING ------------------------------------------- //

[ 42%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hershey_fonts.cpp.obj [ 42%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/histogram.cpp.obj

D:\opencv\sources\modules\imgproc\src\histogram.cpp: In function 'bool cv::ocl_calcHist1(cv::InputArray, cv::OutputArray, int D:\opencv\sources\modules\imgproc\src\histogram.cpp:1126:27: warning: unknown conversion type character 'z' in format [-Wform format("-D BINS=%d -D HISTS_COUNT=%d -D WGS=%zu -D kercn=%d -D T=%s%s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\imgproc\src\histogram.cpp:1126:27: warning: format '%s' expects argument of type 'char', but argum D:\opencv\sources\modules\imgproc\src\histogram.cpp:1126:27: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\imgproc\src\histogram.cpp: In function 'bool cv::ocl_equalizeHist(cv::InputArray, cv::OutputArray)' D:\opencv\sources\modules\imgproc\src\histogram.cpp:3256:27: warning: unknown conversion type character 'z' in format [-Wform format("-D BINS=%d -D HISTS_COUNT=%d -D WGS=%zu -D kercn=%d -D T=%s%s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\imgproc\src\histogram.cpp:3256:27: warning: format '%s' expects argument of type 'char', but argum D:\opencv\sources\modules\imgproc\src\histogram.cpp:3256:27: warning: too many arguments for format [-Wformat-extra-args]

[ 42%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hough.cpp.obj

// ------------------------------------------- 11TH WARNING ------------------------------------------- //

[ 45%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_registry.cpp.obj

In file included from D:\opencv\sources\modules\videoio\src\videoio_registry.cpp:13: D:\opencv\sources\modules\videoio\src\cap_dshow.hpp:33:18: warning: 'virtual bool cv::VideoCapture_DShow::isOpened() const' can be marked override [-Wsuggest-ov erride] virtual bool isOpened() const; ^~~~~~~~

[ 45%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_c.cpp.obj

// ------------------------------------------- 12TH WARNING ------------------------------------------- //

[ 46%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/container_avi.cpp.obj In file included from D:/opencv/sources/modules/core/include/opencv2/core.hpp:54, from D:/opencv/sources/modules/core/include/opencv2/core/types_c.h:124, from D:/opencv/sources/modules/core/include/opencv2/core/core_c.h:48, from D:/opencv/sources/modules/videoio/include/opencv2/videoio/videoio_c.h:45, from D:/opencv/sources/modules/videoio/include/opencv2/videoio/container_avi.private.hpp:13, from D:\opencv\sources\modules\videoio\src\container_avi.cpp:5: D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = int; S = unsigned int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:239:123: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = long long int; S = long long unsigne d int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:249:106: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = unsigned int; S = int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:671:118: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = long long int; S = unsigned int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:750:108: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char*) [with D = unsigned int; S = unsigned int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:963:125: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~

// ------------------------------------------- 13TH WARNING ------------------------------------------- //

[ 46%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj In file included from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:45: D:\opencv\sources\modules\videoio\src\cap_dshow.hpp:33:18: warning: 'virtual bool cv::VideoCapture_DShow::isOpened() const' can be marked override [-Wsuggest-ov erride] virtual bool isOpened() const; ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:692:26: warning: 'virtual ULONG SampleGrabberCallback::AddRef()' can be marked override [-Wsuggest-override]

 STDMETHODIMP_(ULONG) AddRef() { return 1; }
                      ^~~~~~

D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:693:26: warning: 'virtual ULONG SampleGrabberCallback::Release()' can be marked override [-Wsuggest-override ] STDMETHODIMP_(ULONG) Release() { return 2; } ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:697:18: warning: 'virtual HRESULT SampleGrabberCallback::QueryInterface(const IID&, void*)' can be marked o verride [-Wsuggest-override] STDMETHODIMP QueryInterface(REFIID, void *ppvObject){ ^~~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:705:18: warning: 'virtual HRESULT SampleGrabberCallback::SampleCB(double, IMediaSample)' can be marked over ride [-Wsuggest-override] STDMETHODIMP SampleCB(double , IMediaSample *pSample){ ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:729:18: warning: 'virtual HRESULT SampleGrabberCallback::BufferCB(double, BYTE, long int)' can be marked ov erride [-Wsuggest-override] STDMETHODIMP BufferCB(double, BYTE , long){ ^~~~~~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getMediaSubtypeAsString(GUID, char)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2297:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope if( type == MEDIASUBTYPE_RGB24) sprintf(tmpStr, "RGB24"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2297:57: warning: left operand of comma operator has no effect [-Wunused-value] if( type == MEDIASUBTYPE_RGB24) sprintf(tmpStr, "RGB24"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2298:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2298:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2298:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2299:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2299:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2299:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555"); ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2300:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2300:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2300:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565"); ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2301:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YUY2) sprintf(tmpStr, "YUY2"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2301:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YUY2) sprintf(tmpStr, "YUY2"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2301:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YUY2) sprintf(tmpStr, "YUY2"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2302:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YVYU) sprintf(tmpStr, "YVYU"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2302:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YVYU) sprintf(tmpStr, "YVYU"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2302:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YVYU) sprintf(tmpStr, "YVYU"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2303:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YUYV) sprintf(tmpStr, "YUYV"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2303:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YUYV) sprintf(tmpStr, "YUYV"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2303:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YUYV) sprintf(tmpStr, "YUYV"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2304:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_IYUV) sprintf(tmpStr, "IYUV"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2304:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_IYUV) sprintf(tmpStr, "IYUV"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2304:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_IYUV) sprintf(tmpStr, "IYUV"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2305:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_UYVY) sprintf(tmpStr, "UYVY"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2305:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_UYVY) sprintf(tmpStr, "UYVY"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2305:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_UYVY) sprintf(tmpStr, "UYVY"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2306:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YV12) sprintf(tmpStr, "YV12"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2306:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YV12) sprintf(tmpStr, "YV12"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2306:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YV12) sprintf(tmpStr, "YV12"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2307:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YVU9) sprintf(tmpStr, "YVU9"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2307:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YVU9) sprintf(tmpStr, "YVU9"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2307:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YVU9) sprintf(tmpStr, "YVU9"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2308:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y411) sprintf(tmpStr, "Y411"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2308:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y411) sprintf(tmpStr, "Y411"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2308:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y411) sprintf(tmpStr, "Y411"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2309:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y41P) sprintf(tmpStr, "Y41P"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2309:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y41P) sprintf(tmpStr, "Y41P"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2309:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y41P) sprintf(tmpStr, "Y41P"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2310:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y211) sprintf(tmpStr, "Y211"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2310:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y211) sprintf(tmpStr, "Y211"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2310:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y211) sprintf(tmpStr, "Y211"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2311:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_AYUV) sprintf(tmpStr, "AYUV"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2311:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_AYUV) sprintf(tmpStr, "AYUV"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2311:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_AYUV) sprintf(tmpStr, "AYUV"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2312:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_MJPG) sprintf(tmpStr, "MJPG"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2312:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_MJPG) sprintf(tmpStr, "MJPG"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2312:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_MJPG) sprintf(tmpStr, "MJPG"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2313:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y800) sprintf(tmpStr, "Y800"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2313:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y800) sprintf(tmpStr, "Y800"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2313:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y800) sprintf(tmpStr, "Y800"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2314:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y8) sprintf(tmpStr, "Y8"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2314:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y8) sprintf(tmpStr, "Y8"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2314:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y8) sprintf(tmpStr, "Y8"); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2315:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_GREY) sprintf(tmpStr, "GREY"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2315:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_GREY) sprintf(tmpStr, "GREY"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2315:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_GREY) sprintf(tmpStr, "GREY"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2316:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_I420) sprintf(tmpStr, "I420"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2316:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_I420) sprintf(tmpStr, "I420"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2316:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_I420) sprintf(tmpStr, "I420"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2317:5: error: 'else' without a previous 'if' else if (type == MEDIASUBTYPE_BY8) sprintf(tmpStr, "BY8"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2317:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if (type == MEDIASUBTYPE_BY8) sprintf(tmpStr, "BY8"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2317:57: warning: left operand of comma operator has no effect [-Wunused-value] else if (type == MEDIASUBTYPE_BY8) sprintf(tmpStr, "BY8"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2318:5: error: 'else' without a previous 'if' else if (type == MEDIASUBTYPE_Y16) sprintf(tmpStr, "Y16"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2318:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if (type == MEDIASUBTYPE_Y16) sprintf(tmpStr, "Y16"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2318:57: warning: left operand of comma operator has no effect [-Wunused-value] else if (type == MEDIASUBTYPE_Y16) sprintf(tmpStr, "Y16"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2319:5: error: 'else' without a previous 'if' else sprintf(tmpStr, "OTHER"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2319:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else sprintf(tmpStr, "OTHER"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2319:26: warning: left operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "OTHER"); ^~~~~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getVideoPropertyAsString(int, char)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2345:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope if ( prop==VideoProcAmp_Brightness) sprintf(tmpStr, "Brightness"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2345:57: warning: left operand of comma operator has no effect [-Wunused-value] if ( prop==VideoProcAmp_Brightness) sprintf(tmpStr, "Brightness"); ^~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2346:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2346:44: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2346:60: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast"); ^~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2347:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2347:46: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2347:62: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation"); ^~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2348:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2348:39: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2348:55: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2349:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2349:40: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2349:56: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2350:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2350:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2350:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2351:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2351:47: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2351:63: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable"); ^~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2352:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2352:45: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2352:61: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness"); ^~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:5: error: 'else' without a previous 'if' else sprintf(tmpStr, "%u",prop); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else sprintf(tmpStr, "%u",prop); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:26: warning: left operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:31: warning: right operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getCameraPropertyAsString(int, char)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2448:35: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope if ( prop==CameraControl_Pan) sprintf(tmpStr, "Pan"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2448:51: warning: left operand of comma operator has no effect [-Wunused-value] if ( prop==CameraControl_Pan) sprintf(tmpStr, "Pan"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2449:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2449:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2449:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2450:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2450:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2450:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2451:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2451:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2451:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2452:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2452:45: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2452:61: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure"); ^~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2453:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2453:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2453:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2454:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2454:42: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2454:58: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:5: error: 'else' without a previous 'if' else sprintf(tmpStr, "%u",prop); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else sprintf(tmpStr, "%u",prop); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:26: warning: left operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:31: warning: right operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'virtual bool cv::VideoCapture_DShow::setProperty(int, double)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3441:10: error: jump to case label [-fpermissive] case CV_CAP_PROP_AUTOFOCUS: ^~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3428:13: note: crosses initialization of 'int fps' int fps = cvRound(propVal); ^~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3453:10: error: jump to case label [-fpermissive] case CV_CAP_PROP_CONVERT_RGB: ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3444:14: note: crosses initialization of 'bool enabled' bool enabled = cvRound(propVal) == 1; ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3428:13: note: crosses initialization of 'int fps' int fps = cvRound(propVal); ^~~ // ------------------------------------------- WARNING END ------------------------------------------- //

// ------------------------------------------- ERROR & STOPPED ------------------------------------------- //

mingw32-make[2]: * [modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:161: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj] Error 1

mingw32-make[1]: * [CMakeFiles\Makefile2:2511: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2 mingw32-make: * [Makefile:162: all] Error 2

D:\opencv\build\my_build>

// ------------------------------------------- END ------------------------------------------- //

getting error when run mingw32-make: cap_dshow.cpp file error

HI, After setting necessary things, When I run mingw32-make in command line, up to 41% Many things were gone fine with few warnings. But at 42%, it stopped due to error in module/videoio/cmakefiles/opencv_videoio.dir/src/cap_dshow.cpp.obj failed

After searching this website, someone recommended to check for broken Cap_dshow.cpp (missing "/" on comment, etc). when I go through the Cap_dshow.cpp file, i think something missing in the file but I could not able to recognize the error. Can anyone give me working cap_dshow.cpp file to replace the error file? Or could be there any other issue?

my OS: MS Windows 7 32 bit Opencv: opencv-4.0.0-vc14_vc15.exe

advance thanks

Added:

Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2")
libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-4.0.0-libjpeg-turbo
Looking for Mfapi.h
Looking for Mfapi.h - found
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find BLAS (missing: BLAS_LIBRARIES) 
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH: D:/opencv/build/my_build/python_loader      

Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx2.cpp         
Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx2.cpp     
Excluding from source files list: modules/imgproc/src/filter.avx2.cpp      
Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp      
Excluding from source files list: modules/imgproc/src/resize.avx2.cpp     
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx2.cpp       
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp     
Excluding from source files list: modules/features2d/src/fast.avx2.cpp      
Excluding from source files list: modules/calib3d/src/undistort.avx2.cpp      

    General configuration for OpenCV 4.0.0 =====================================
  Version control:               unknown

  Platform:
    Timestamp:                   2018-12-12T18:01:01Z
    Host:                        Windows 6.1.7600 x86
    CMake:                       3.13.1
    CMake generator:             MinGW Makefiles
    CMake build tool:            C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/bin/mingw32-make.exe
    Configuration:               Release

  CPU/HW features:
    Baseline:                    SSE SSE2
      requested:                 SSE2
    Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX
      requested:                 SSE4_1 SSE4_2 AVX FP16
      SSE4_1 (8 files):          + SSE3 SSSE3 SSE4_1
      SSE4_2 (2 files):          + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (1 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (5 files):             + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/g++.exe  (ver 8.1.0)   
    C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG               

    C Compiler:                  C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe    

    C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG

    Linker flags (Release):      -Wl,--gc-sections  
    Linker flags (Debug):        -Wl,--gc-sections  
    ccache:                      NO
    Precompiled headers:         YES
    Extra dependencies:
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc java_bindings_generator ml objdetect photo python_bindings_generator stitching ts video videoio
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 java js python2 python3
    Applications:                tests perf_tests apps
    Documentation:               NO
    Non-free algorithms:         NO

  Windows RT support:            NO

  GUI: 
    Win32 UI:                    YES
    VTK support:                 NO

  Media I/O: 
    ZLib:                        build (ver 1.2.11)
    JPEG:                        build-libjpeg-turbo (ver 1.5.3-62)
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         build (ver 1.6.35)
    TIFF:                        build (ver 42 - 4.0.9)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
    PFM:                         YES

  Video I/O:
    DC1394:                      NO
    FFMPEG:                      YES (prebuilt binaries)
      avcodec:                   YES (ver 58.35.100)
      avformat:                  YES (ver 58.20.100)
      avutil:                    YES (ver 56.22.100)
      swscale:                   YES (ver 5.3.100)
      avresample:                YES (ver 4.0.0)
    GStreamer:                   NO
    DirectShow:                  YES
    Media Foundation:            YES

  Parallel framework:            none

  Trace:                         YES (built-in)

  Other third-party libraries:
    Lapack:                      NO
    Eigen:                       NO
    Custom HAL:                  NO
    Protobuf:                    build (3.5.1)

  OpenCL:                        YES (no extra features)
    Include path:                D:/opencv/sources/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load

  Python (for build):            NO

  Java:                          
    ant:                         NO
    JNI:                         NO
    Java wrappers:               NO
    Java tests:                  NO

  Install to:                    D:/opencv/build/my_build/install
-----------------------------------------------------------------

Configuring done

Kindly bare with me for conjusted code.

Added:

I have posted all the warnings (13) for your reference. The size looks huge but hope you can easily understand the warnings (13) and error (1 - at the end). I have marked and devised the errors for your convenience.

SL NO (WARNING NUMBER). FILE NAME (below)

  1. jconfig.h:
  2. common.cc
  3. alloc.cpp
  4. bindings_utils.cpp
  5. channels.cpp
  6. lda.cpp
  7. matrix_operations.cpp
  8. ocl.cpp (really huge errors in this file - )
  9. featureselect.cpp
  10. histogram.cpp
  11. cap_dshow.hpp
  12. videoio\src\container_avi.cpp, include/opencv2/base.hpp (huge errors in this file)
  13. \videoio\src\cap_dshow.cpp (huge errors in this file)

LASTLY: ERROR AND STOPPED.

ERROR LISTS:

LISTS: (KINDLY JUST COPY TO NOTEPAD THIS ENTIRE CODE AND VIEW THERE TO FIND THE PLACE OF ERRORS. IF YOU SEE DIRECTLY THE ERROR POINTER, IT WILL POINT SOME OTHER PLACE RATHER THAN ACTUAL ERROR)

Maximum Error encountered at sprintf() and format()

START

ERROR LISTS:

// ------------------------------------------- 1ST WARNING ------------------------------------------- //

[ 7%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jpeg_12.c.obj [ 7%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jpeg.c.obj

In file included from D:/opencv/sources/3rdparty/libjpeg-turbo/src/jpeglib.h:29, from D:\opencv\sources\3rdparty\libtiff\tif_jpeg.c:91: D:/opencv/build/my_build/3rdparty/libjpeg-turbo/jconfig.h:45: warning: "XMD_H" redefined #define XMD_H /* prevent jmorecfg.h from redefining it */

D:\opencv\sources\3rdparty\libtiff\tif_jpeg.c:67: note: this is the location of the previous definition # define XMD_H 1

[ 8%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_luv.c.obj [ 8%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_lzma.c.obj [ 8%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_lzw.c.obj

// ------------------------------------------- 2ND WARNING ------------------------------------------- //

[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream_impl_lit [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message_lite.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/repeated_field.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/atomicops_internals_x8 [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/bytestream.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/common.cc.obj

D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc: In member function 'google::protobuf::internal: :LogMessage::operator<<(long long int)': D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:246:45: warning: unknown conversion type charact DECLARE_STREAM_OPERATOR(long long , "%" GOOGLE_LL_FORMAT "d") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \ ^~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:246:45: warning: too many arguments for format [ DECLARE_STREAM_OPERATOR(long long , "%" GOOGLE_LL_FORMAT "d") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \ ^~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc: In member function 'google::protobuf::internal: :LogMessage::operator<<(long long unsigned int)': D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:247:45: warning: unknown conversion type charact DECLARE_STREAM_OPERATOR(unsigned long long, "%" GOOGLE_LL_FORMAT "u") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \ ^~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:247:45: warning: too many arguments for format [ DECLARE_STREAM_OPERATOR(unsigned long long, "%" GOOGLE_LL_FORMAT "u") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \

                                  ^~~~~~

[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/int128.cc.obj [ 28%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.cc.obj [ 28%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/once.cc.obj

// ------------------------------------------- 3RD WARNING ------------------------------------------- //

[ 33%] Building CXX object modules/CMakeFiles/ade.dir/__/3rdparty/ade/ade-0.1.1d/sources/ade/source/topological_sort.cpp.o [ 33%] Linking CXX static library ..\lib\libade.a [ 33%] Built target ade Scanning dependencies of target opencv_core [ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.obj [ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.obj

In file included from D:/opencv/sources/modules/core/include/opencv2/core.hpp:54, from D:/opencv/sources/modules/core/include/opencv2/core/utility.hpp:56, from D:\opencv\sources\modules\core\src\precomp.hpp:49, from D:\opencv\sources\modules\core\src\alloc.cpp:43: D:\opencv\sources\modules\core\src\alloc.cpp: In function 'void* cv::OutOfMemoryError(size_t)': D:\opencv\sources\modules\core\src\alloc.cpp:55:29: warning: unknown conversion type character 'l' in format [-Wformat=] CV_Error_(CV_StsNoMem, ("Failed to allocate %llu bytes", (unsigned long long)size)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\core\src\alloc.cpp:55:29: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(CV_StsNoMem, ("Failed to allocate %llu bytes", (unsigned long long)size)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ )

                                                         ^~~~

[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.obj

// ------------------------------------------- 4TH WARNING ------------------------------------------- //

[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/batch_distance.cpp.obj [ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/bindings_utils.cpp.obj

D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputArray(cv::InputArray) D:\opencv\sources\modules\core\src\bindings_utils.cpp:20:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:20:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:21:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:21:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:27:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:27:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputArrayOfArrays(cv::Inp D:\opencv\sources\modules\core\src\bindings_utils.cpp:50:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:50:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:51:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:51:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:57:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:57:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputOutputArray(cv::Input D:\opencv\sources\modules\core\src\bindings_utils.cpp:87:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:87:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:88:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:88:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:94:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:94:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputOutputArrayOfArrays(c D:\opencv\sources\modules\core\src\bindings_utils.cpp:117:30: warning: unknown conversion type character 'l' in format [ ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:117:30: warning: too many arguments for format [-Wformat-extra-arg D:\opencv\sources\modules\core\src\bindings_utils.cpp:118:30: warning: unknown conversion type character 'l' in format [ ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:118:30: warning: too many arguments for format [-Wformat-extra-arg D:\opencv\sources\modules\core\src\bindings_utils.cpp:124:30: warning: unknown conversion type character 'l' in format [ ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:124:30: warning: too many arguments for format [-Wformat-extra-arg

[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/channels.cpp.obj

// ------------------------------------------- 5TH WARNING ------------------------------------------- //

D:\opencv\sources\modules\core\src\channels.cpp: In function 'bool cv::ocl_mixChannels(cv::InputArrayOfArrays, cv::Input ': D:\opencv\sources\modules\core\src\channels.cpp:240:27: warning: unknown conversion type character 'z' in format [-Wform declsrc += format("DECLARE_INPUT_MAT(%zu)", i); ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:240:27: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:241:27: warning: unknown conversion type character 'z' in format [-Wform decldst += format("DECLARE_OUTPUT_MAT(%zu)", i); ^~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:241:27: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:242:29: warning: unknown conversion type character 'z' in format [-Wform indexdecl += format("DECLARE_INDEX(%zu)", i); ^~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:242:29: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:243:28: warning: unknown conversion type character 'z' in format [-Wform declproc += format("PROCESS_ELEM(%zu)", i); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:243:28: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:244:26: warning: unknown conversion type character 'z' in format [-Wform declcn += format(" -D scn%zu=%d -D dcn%zu=%d", i, src[src_idx].channels(), i, dst[dst_idx].channels()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:244:26: warning: unknown conversion type character 'z' in format [-Wform D:\opencv\sources\modules\core\src\channels.cpp:244:26: warning: too many arguments for format [-Wformat-extra-args]

[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/kmeans.cpp.obj [ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lapack.cpp.obj [ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lda.cpp.obj

// ------------------------------------------- 6TH WARNING ------------------------------------------- //

D:\opencv\sources\modules\core\src\lda.cpp: In static member function 'static cv::Mat cv::LDA::subspaceProject(cv::Input

D:\opencv\sources\modules\core\src\lda.cpp:187:39: warning: unknown conversion type character 'z' in format [-Wformat=] String error_message = format("Wrong mean shape for the given data matrix. Expected %d, but was %zu.", d, mean. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\lda.cpp:187:39: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\lda.cpp: In static member function 'static cv::Mat cv::LDA::subspaceReconstruct(cv::I y)': D:\opencv\sources\modules\core\src\lda.cpp:225:39: warning: unknown conversion type character 'z' in format [-Wformat=] String error_message = format("Wrong mean shape for the given eigenvector matrix. Expected %d, but was %zu.", W ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\lda.cpp:225:39: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\lda.cpp: In member function 'void cv::LDA::lda(cv::InputArrayOfArrays, cv::InputArray D:\opencv\sources\modules\core\src\lda.cpp:1079:39: warning: unknown conversion type character 'z' in format [-Wformat=] String error_message = format("The number of samples must equal the number of labels. Given %zu labels, %d samp ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\lda.cpp:1079:39: warning: too many arguments for format [-Wformat-extra-args]

[ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/logger.cpp.obj [ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lpsolver.cpp.obj

// ------------------------------------------- 7TH WARNING ------------------------------------------- //

[ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_expressions.cpp.obj [ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_iterator.cpp.obj [ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_operations.cpp.obj D:\opencv\sources\modules\core\src\matrix_operations.cpp: In function 'bool cv::ocl_reduce(cv::InputArray, cv::OutputArr D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: unknown conversion type character 'z' in forma cv::String build_opt = format("-D OP_REDUCE_PRE -D BUF_COLS=%d -D TILE_HEIGHT=%zu -D %s -D dim=1" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ " -D cn=%d -D ddepth=%d" ~~~~~~~~~~~~~~~~~~~~~~~~ " -D srcT=%s -D bufT=%s -D dstT=%s" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ " -D convertToWT=%s -D convertToBufT=%s -D convertToDT=%s%s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: format '%s' expects argument of type 'char', nsigned int'} [-Wformat=] D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: format '%d' expects argument of type 'int', bu ormat=] D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: format '%s' expects argument of type 'char', ] D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: too many arguments for format [-Wformat-extra-

[ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_sparse.cpp.obj

// ------------------------------------------- 8TH WARNING ------------------------------------------- //

D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'bool cv::ocl::Kernel::Impl::run(int, size_t, size_t, b D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: unknown conversion type character 'z' in format [-Wformat=] (localsize ? cv::format("%zux%zux%zu", localsize[0], (dims > 1 ? localsize[1] : 1), (dims > 2 ? ).c_str(), ^~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: unknown conversion type character 'z' in format [-Wformat=] cv::String msg = cv::format("clEnqueueNDRangeKernel('%s', dims=%d, globalsize=%zux%zux%zu, localsize=%s) sync=% ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: format '%s' expects argument of type 'char', but argument [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: format '%s' expects argument of type 'char', but argument D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::ProgramSource::Impl::updateHash(const char D:\opencv\sources\modules\core\src\ocl.cpp:3334:34: warning: unknown conversion type character 'j' in format [-Wformat=] sourceHash_ = cv::format("%08jx", (uintmax_t)hash); ^~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:3334:34: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::OpenCLBufferPoolImpl::_allocateBufferEntry try&, size_t)': D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:9: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:9: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:9: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual bool cv::ocl::OpenCLAllocator::allocate(cv::UMat s) const': D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)u->size, u->origdata, (void)handle).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)u->size, u->origdata, (void)handle).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: format '%p' expects argument of type 'void*', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                         (long long int)u->size, u->origdata, (void*)handle).c_str());
                         ~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: format '%p' expects argument of type 'void*', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                         (long long int)u->size, u->origdata, (void*)handle).c_str());
                         ~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::OpenCLAllocator::deallocate_(cv::UMatData* D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::map(cv::UMatData* D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::unmap(cv::UMatDat D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::upload(cv::UMatDa nst size_t, const size_t, const size_t) const': D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)dstrawofs, (long long int)u->size, alignedPtr.getAlignedPtr()) ~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)dstrawofs, (long long int)u->size, alignedPtr.getAlignedPtr()) ~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::copy(cv::UMatData nst size_t, const size_t, const size_t, const size_t, bool) const': D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::Image2D::Impl::init(const cv::UMat&, bool, D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)(src.cols * src.rows * src.elemSize()), (void)devData ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)(src.cols * src.rows * src.elemSize()), (void)devData ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~

// ------------------------------------------- 9TH WARNING ------------------------------------------- //

[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/emd.cpp.obj [ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/featureselect.cpp.obj

D:\opencv\sources\modules\imgproc\src\featureselect.cpp: In function 'bool cv::ocl_goodFeaturesToTrack(cv::InputArray, cv::Ou :InputArray, int, int, bool, double)': D:\opencv\sources\modules\imgproc\src\featureselect.cpp:129:31: warning: unknown conversion type character 'z' in format [-Wf format("-D OP_MAX_EIGEN_VAL -D WGS=%zu -D WGS2_ALIGNED=%d -D groupnum=%d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\imgproc\src\featureselect.cpp:129:31: warning: too many arguments for format [-Wformat-extra-args]

[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/filter.cpp.obj

// ------------------------------------------- 10TH WARNING ------------------------------------------- //

[ 42%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hershey_fonts.cpp.obj [ 42%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/histogram.cpp.obj

D:\opencv\sources\modules\imgproc\src\histogram.cpp: In function 'bool cv::ocl_calcHist1(cv::InputArray, cv::OutputArray, int D:\opencv\sources\modules\imgproc\src\histogram.cpp:1126:27: warning: unknown conversion type character 'z' in format [-Wform format("-D BINS=%d -D HISTS_COUNT=%d -D WGS=%zu -D kercn=%d -D T=%s%s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\imgproc\src\histogram.cpp:1126:27: warning: format '%s' expects argument of type 'char', but argum D:\opencv\sources\modules\imgproc\src\histogram.cpp:1126:27: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\imgproc\src\histogram.cpp: In function 'bool cv::ocl_equalizeHist(cv::InputArray, cv::OutputArray)' D:\opencv\sources\modules\imgproc\src\histogram.cpp:3256:27: warning: unknown conversion type character 'z' in format [-Wform format("-D BINS=%d -D HISTS_COUNT=%d -D WGS=%zu -D kercn=%d -D T=%s%s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\imgproc\src\histogram.cpp:3256:27: warning: format '%s' expects argument of type 'char', but argum D:\opencv\sources\modules\imgproc\src\histogram.cpp:3256:27: warning: too many arguments for format [-Wformat-extra-args]

[ 42%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hough.cpp.obj

// ------------------------------------------- 11TH WARNING ------------------------------------------- //

[ 45%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_registry.cpp.obj

In file included from D:\opencv\sources\modules\videoio\src\videoio_registry.cpp:13: D:\opencv\sources\modules\videoio\src\cap_dshow.hpp:33:18: warning: 'virtual bool cv::VideoCapture_DShow::isOpened() const' can be marked override [-Wsuggest-ov erride] virtual bool isOpened() const; ^~~~~~~~

[ 45%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_c.cpp.obj

// ------------------------------------------- 12TH WARNING ------------------------------------------- //

[ 46%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/container_avi.cpp.obj In file included from D:/opencv/sources/modules/core/include/opencv2/core.hpp:54, from D:/opencv/sources/modules/core/include/opencv2/core/types_c.h:124, from D:/opencv/sources/modules/core/include/opencv2/core/core_c.h:48, from D:/opencv/sources/modules/videoio/include/opencv2/videoio/videoio_c.h:45, from D:/opencv/sources/modules/videoio/include/opencv2/videoio/container_avi.private.hpp:13, from D:\opencv\sources\modules\videoio\src\container_avi.cpp:5: D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = int; S = unsigned int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:239:123: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = long long int; S = long long unsigne d int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:249:106: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = unsigned int; S = int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:671:118: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = long long int; S = unsigned int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:750:108: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char*) [with D = unsigned int; S = unsigned int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:963:125: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~

// ------------------------------------------- 13TH WARNING ------------------------------------------- //

[ 46%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj In file included from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:45: D:\opencv\sources\modules\videoio\src\cap_dshow.hpp:33:18: warning: 'virtual bool cv::VideoCapture_DShow::isOpened() const' can be marked override [-Wsuggest-ov erride] virtual bool isOpened() const; ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:692:26: warning: 'virtual ULONG SampleGrabberCallback::AddRef()' can be marked override [-Wsuggest-override]

 STDMETHODIMP_(ULONG) AddRef() { return 1; }
                      ^~~~~~

D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:693:26: warning: 'virtual ULONG SampleGrabberCallback::Release()' can be marked override [-Wsuggest-override ] STDMETHODIMP_(ULONG) Release() { return 2; } ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:697:18: warning: 'virtual HRESULT SampleGrabberCallback::QueryInterface(const IID&, void*)' can be marked o verride [-Wsuggest-override] STDMETHODIMP QueryInterface(REFIID, void *ppvObject){ ^~~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:705:18: warning: 'virtual HRESULT SampleGrabberCallback::SampleCB(double, IMediaSample)' can be marked over ride [-Wsuggest-override] STDMETHODIMP SampleCB(double , IMediaSample *pSample){ ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:729:18: warning: 'virtual HRESULT SampleGrabberCallback::BufferCB(double, BYTE, long int)' can be marked ov erride [-Wsuggest-override] STDMETHODIMP BufferCB(double, BYTE , long){ ^~~~~~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getMediaSubtypeAsString(GUID, char)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2297:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope if( type == MEDIASUBTYPE_RGB24) sprintf(tmpStr, "RGB24"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2297:57: warning: left operand of comma operator has no effect [-Wunused-value] if( type == MEDIASUBTYPE_RGB24) sprintf(tmpStr, "RGB24"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2298:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2298:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2298:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2299:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2299:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2299:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555"); ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2300:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2300:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2300:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565"); ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2301:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YUY2) sprintf(tmpStr, "YUY2"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2301:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YUY2) sprintf(tmpStr, "YUY2"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2301:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YUY2) sprintf(tmpStr, "YUY2"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2302:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YVYU) sprintf(tmpStr, "YVYU"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2302:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YVYU) sprintf(tmpStr, "YVYU"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2302:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YVYU) sprintf(tmpStr, "YVYU"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2303:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YUYV) sprintf(tmpStr, "YUYV"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2303:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YUYV) sprintf(tmpStr, "YUYV"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2303:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YUYV) sprintf(tmpStr, "YUYV"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2304:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_IYUV) sprintf(tmpStr, "IYUV"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2304:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_IYUV) sprintf(tmpStr, "IYUV"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2304:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_IYUV) sprintf(tmpStr, "IYUV"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2305:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_UYVY) sprintf(tmpStr, "UYVY"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2305:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_UYVY) sprintf(tmpStr, "UYVY"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2305:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_UYVY) sprintf(tmpStr, "UYVY"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2306:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YV12) sprintf(tmpStr, "YV12"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2306:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YV12) sprintf(tmpStr, "YV12"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2306:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YV12) sprintf(tmpStr, "YV12"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2307:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YVU9) sprintf(tmpStr, "YVU9"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2307:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YVU9) sprintf(tmpStr, "YVU9"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2307:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YVU9) sprintf(tmpStr, "YVU9"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2308:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y411) sprintf(tmpStr, "Y411"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2308:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y411) sprintf(tmpStr, "Y411"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2308:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y411) sprintf(tmpStr, "Y411"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2309:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y41P) sprintf(tmpStr, "Y41P"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2309:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y41P) sprintf(tmpStr, "Y41P"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2309:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y41P) sprintf(tmpStr, "Y41P"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2310:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y211) sprintf(tmpStr, "Y211"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2310:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y211) sprintf(tmpStr, "Y211"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2310:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y211) sprintf(tmpStr, "Y211"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2311:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_AYUV) sprintf(tmpStr, "AYUV"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2311:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_AYUV) sprintf(tmpStr, "AYUV"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2311:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_AYUV) sprintf(tmpStr, "AYUV"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2312:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_MJPG) sprintf(tmpStr, "MJPG"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2312:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_MJPG) sprintf(tmpStr, "MJPG"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2312:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_MJPG) sprintf(tmpStr, "MJPG"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2313:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y800) sprintf(tmpStr, "Y800"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2313:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y800) sprintf(tmpStr, "Y800"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2313:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y800) sprintf(tmpStr, "Y800"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2314:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y8) sprintf(tmpStr, "Y8"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2314:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y8) sprintf(tmpStr, "Y8"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2314:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y8) sprintf(tmpStr, "Y8"); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2315:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_GREY) sprintf(tmpStr, "GREY"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2315:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_GREY) sprintf(tmpStr, "GREY"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2315:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_GREY) sprintf(tmpStr, "GREY"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2316:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_I420) sprintf(tmpStr, "I420"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2316:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_I420) sprintf(tmpStr, "I420"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2316:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_I420) sprintf(tmpStr, "I420"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2317:5: error: 'else' without a previous 'if' else if (type == MEDIASUBTYPE_BY8) sprintf(tmpStr, "BY8"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2317:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if (type == MEDIASUBTYPE_BY8) sprintf(tmpStr, "BY8"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2317:57: warning: left operand of comma operator has no effect [-Wunused-value] else if (type == MEDIASUBTYPE_BY8) sprintf(tmpStr, "BY8"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2318:5: error: 'else' without a previous 'if' else if (type == MEDIASUBTYPE_Y16) sprintf(tmpStr, "Y16"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2318:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if (type == MEDIASUBTYPE_Y16) sprintf(tmpStr, "Y16"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2318:57: warning: left operand of comma operator has no effect [-Wunused-value] else if (type == MEDIASUBTYPE_Y16) sprintf(tmpStr, "Y16"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2319:5: error: 'else' without a previous 'if' else sprintf(tmpStr, "OTHER"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2319:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else sprintf(tmpStr, "OTHER"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2319:26: warning: left operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "OTHER"); ^~~~~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getVideoPropertyAsString(int, char)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2345:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope if ( prop==VideoProcAmp_Brightness) sprintf(tmpStr, "Brightness"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2345:57: warning: left operand of comma operator has no effect [-Wunused-value] if ( prop==VideoProcAmp_Brightness) sprintf(tmpStr, "Brightness"); ^~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2346:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2346:44: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2346:60: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast"); ^~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2347:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2347:46: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2347:62: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation"); ^~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2348:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2348:39: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2348:55: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2349:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2349:40: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2349:56: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2350:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2350:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2350:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2351:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2351:47: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2351:63: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable"); ^~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2352:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2352:45: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2352:61: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness"); ^~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:5: error: 'else' without a previous 'if' else sprintf(tmpStr, "%u",prop); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else sprintf(tmpStr, "%u",prop); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:26: warning: left operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:31: warning: right operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getCameraPropertyAsString(int, char)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2448:35: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope if ( prop==CameraControl_Pan) sprintf(tmpStr, "Pan"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2448:51: warning: left operand of comma operator has no effect [-Wunused-value] if ( prop==CameraControl_Pan) sprintf(tmpStr, "Pan"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2449:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2449:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2449:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2450:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2450:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2450:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2451:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2451:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2451:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2452:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2452:45: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2452:61: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure"); ^~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2453:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2453:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2453:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2454:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2454:42: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2454:58: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:5: error: 'else' without a previous 'if' else sprintf(tmpStr, "%u",prop); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else sprintf(tmpStr, "%u",prop); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:26: warning: left operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:31: warning: right operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'virtual bool cv::VideoCapture_DShow::setProperty(int, double)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3441:10: error: jump to case label [-fpermissive] case CV_CAP_PROP_AUTOFOCUS: ^~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3428:13: note: crosses initialization of 'int fps' int fps = cvRound(propVal); ^~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3453:10: error: jump to case label [-fpermissive] case CV_CAP_PROP_CONVERT_RGB: ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3444:14: note: crosses initialization of 'bool enabled' bool enabled = cvRound(propVal) == 1; ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3428:13: note: crosses initialization of 'int fps' int fps = cvRound(propVal); ^~~ // ------------------------------------------- WARNING END ------------------------------------------- //

// ------------------------------------------- ERROR & STOPPED ------------------------------------------- //

mingw32-make[2]: * [modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:161: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj] Error 1

mingw32-make[1]: * [CMakeFiles\Makefile2:2511: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2 mingw32-make: * [Makefile:162: all] Error 2

D:\opencv\build\my_build>

// ------------------------------------------- END ------------------------------------------- //

END

getting error when run mingw32-make: cap_dshow.cpp file error

HI, After setting necessary things, When I run mingw32-make in command line, up to 41% Many things were gone fine with few warnings. But at 42%, it stopped due to error in module/videoio/cmakefiles/opencv_videoio.dir/src/cap_dshow.cpp.obj failed

After searching this website, someone recommended to check for broken Cap_dshow.cpp (missing "/" on comment, etc). when I go through the Cap_dshow.cpp file, i think something missing in the file but I could not able to recognize the error. Can anyone give me working cap_dshow.cpp file to replace the error file? Or could be there any other issue?

my OS: MS Windows 7 32 bit Opencv: opencv-4.0.0-vc14_vc15.exe

advance thanks

Added:

Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2")
libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-4.0.0-libjpeg-turbo
Looking for Mfapi.h
Looking for Mfapi.h - found
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find BLAS (missing: BLAS_LIBRARIES) 
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH: D:/opencv/build/my_build/python_loader      

Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx2.cpp         
Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx2.cpp     
Excluding from source files list: modules/imgproc/src/filter.avx2.cpp      
Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp      
Excluding from source files list: modules/imgproc/src/resize.avx2.cpp     
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx2.cpp       
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp     
Excluding from source files list: modules/features2d/src/fast.avx2.cpp      
Excluding from source files list: modules/calib3d/src/undistort.avx2.cpp      

    General configuration for OpenCV 4.0.0 =====================================
  Version control:               unknown

  Platform:
    Timestamp:                   2018-12-12T18:01:01Z
    Host:                        Windows 6.1.7600 x86
    CMake:                       3.13.1
    CMake generator:             MinGW Makefiles
    CMake build tool:            C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/bin/mingw32-make.exe
    Configuration:               Release

  CPU/HW features:
    Baseline:                    SSE SSE2
      requested:                 SSE2
    Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX
      requested:                 SSE4_1 SSE4_2 AVX FP16
      SSE4_1 (8 files):          + SSE3 SSSE3 SSE4_1
      SSE4_2 (2 files):          + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (1 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (5 files):             + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/g++.exe  (ver 8.1.0)   
    C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG               

    C Compiler:                  C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe    

    C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG

    Linker flags (Release):      -Wl,--gc-sections  
    Linker flags (Debug):        -Wl,--gc-sections  
    ccache:                      NO
    Precompiled headers:         YES
    Extra dependencies:
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc java_bindings_generator ml objdetect photo python_bindings_generator stitching ts video videoio
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 java js python2 python3
    Applications:                tests perf_tests apps
    Documentation:               NO
    Non-free algorithms:         NO

  Windows RT support:            NO

  GUI: 
    Win32 UI:                    YES
    VTK support:                 NO

  Media I/O: 
    ZLib:                        build (ver 1.2.11)
    JPEG:                        build-libjpeg-turbo (ver 1.5.3-62)
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         build (ver 1.6.35)
    TIFF:                        build (ver 42 - 4.0.9)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
    PFM:                         YES

  Video I/O:
    DC1394:                      NO
    FFMPEG:                      YES (prebuilt binaries)
      avcodec:                   YES (ver 58.35.100)
      avformat:                  YES (ver 58.20.100)
      avutil:                    YES (ver 56.22.100)
      swscale:                   YES (ver 5.3.100)
      avresample:                YES (ver 4.0.0)
    GStreamer:                   NO
    DirectShow:                  YES
    Media Foundation:            YES

  Parallel framework:            none

  Trace:                         YES (built-in)

  Other third-party libraries:
    Lapack:                      NO
    Eigen:                       NO
    Custom HAL:                  NO
    Protobuf:                    build (3.5.1)

  OpenCL:                        YES (no extra features)
    Include path:                D:/opencv/sources/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load

  Python (for build):            NO

  Java:                          
    ant:                         NO
    JNI:                         NO
    Java wrappers:               NO
    Java tests:                  NO

  Install to:                    D:/opencv/build/my_build/install
-----------------------------------------------------------------

Configuring done

Kindly bare with me for conjusted code.

Added:

I have posted all the warnings (13) ONLY ERRORS for your reference. The size looks huge but hope you can easily understand reference (Omitted the warnings (13) and error (1 - Warnings). Warnings are mostly seen at the end). I have marked and devised the errors for your convenience. sprintf(), snprintf(), format () only

SL NO (WARNING NUMBER). FILE NAME (below)

1 TO 12 WARNINGS

  1. jconfig.h:
  2. common.cc
  3. alloc.cpp
  4. bindings_utils.cpp
  5. channels.cpp
  6. lda.cpp
  7. matrix_operations.cpp
  8. ocl.cpp (really huge errors in this file - )
  9. featureselect.cpp
  10. histogram.cpp
  11. cap_dshow.hpp
  12. videoio\src\container_avi.cpp, include/opencv2/base.hpp (huge errors in this file)

  13. \videoio\src\cap_dshow.cpp (huge errors in this file)file) - ERROR OCCURRED HERE ONLY

LASTLY: ERROR AND STOPPED.

ERROR LISTS: (KINDLY JUST COPY TO NOTEPAD THIS ENTIRE CODE AND VIEW THERE TO FIND THE PLACE OF ERRORS. IF YOU SEE DIRECTLY THE ERROR POINTER, IT WILL POINT SOME OTHER PLACE RATHER THAN ACTUAL ERROR)

Maximum Error encountered at sprintf() and format()

START

ERROR LISTS:

// ------------------------------------------- 1ST WARNING ------------------------------------------- //

[ 7%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jpeg_12.c.obj [ 7%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jpeg.c.obj

In file included from D:/opencv/sources/3rdparty/libjpeg-turbo/src/jpeglib.h:29, from D:\opencv\sources\3rdparty\libtiff\tif_jpeg.c:91: D:/opencv/build/my_build/3rdparty/libjpeg-turbo/jconfig.h:45: warning: "XMD_H" redefined #define XMD_H /* prevent jmorecfg.h from redefining it */

D:\opencv\sources\3rdparty\libtiff\tif_jpeg.c:67: note: this is the location of the previous definition # define XMD_H 1

[ 8%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_luv.c.obj [ 8%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_lzma.c.obj [ 8%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_lzw.c.obj

// ------------------------------------------- 2ND WARNING ------------------------------------------- //

[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream_impl_lit [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message_lite.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/repeated_field.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/atomicops_internals_x8 [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/bytestream.cc.obj [ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/common.cc.obj

D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc: In member function 'google::protobuf::internal: :LogMessage::operator<<(long long int)': D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:246:45: warning: unknown conversion type charact DECLARE_STREAM_OPERATOR(long long , "%" GOOGLE_LL_FORMAT "d") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \ ^~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:246:45: warning: too many arguments for format [ DECLARE_STREAM_OPERATOR(long long , "%" GOOGLE_LL_FORMAT "d") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \ ^~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc: In member function 'google::protobuf::internal: :LogMessage::operator<<(long long unsigned int)': D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:247:45: warning: unknown conversion type charact DECLARE_STREAM_OPERATOR(unsigned long long, "%" GOOGLE_LL_FORMAT "u") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \ ^~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:247:45: warning: too many arguments for format [ DECLARE_STREAM_OPERATOR(unsigned long long, "%" GOOGLE_LL_FORMAT "u") ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\common.cc:232:38: note: in definition of macro 'DECLARE_ST snprintf(buffer, sizeof(buffer), FORMAT, value); \

                                  ^~~~~~

[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/int128.cc.obj [ 28%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.cc.obj [ 28%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/once.cc.obj

// ------------------------------------------- 3RD WARNING ------------------------------------------- //

[ 33%] Building CXX object modules/CMakeFiles/ade.dir/__/3rdparty/ade/ade-0.1.1d/sources/ade/source/topological_sort.cpp.o [ 33%] Linking CXX static library ..\lib\libade.a [ 33%] Built target ade Scanning dependencies of target opencv_core [ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.obj [ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.obj

In file included from D:/opencv/sources/modules/core/include/opencv2/core.hpp:54, from D:/opencv/sources/modules/core/include/opencv2/core/utility.hpp:56, from D:\opencv\sources\modules\core\src\precomp.hpp:49, from D:\opencv\sources\modules\core\src\alloc.cpp:43: D:\opencv\sources\modules\core\src\alloc.cpp: In function 'void* cv::OutOfMemoryError(size_t)': D:\opencv\sources\modules\core\src\alloc.cpp:55:29: warning: unknown conversion type character 'l' in format [-Wformat=] CV_Error_(CV_StsNoMem, ("Failed to allocate %llu bytes", (unsigned long long)size)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\core\src\alloc.cpp:55:29: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(CV_StsNoMem, ("Failed to allocate %llu bytes", (unsigned long long)size)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ )

                                                         ^~~~

[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.obj

// ------------------------------------------- 4TH WARNING ------------------------------------------- //

[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/batch_distance.cpp.obj [ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/bindings_utils.cpp.obj

D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputArray(cv::InputArray) D:\opencv\sources\modules\core\src\bindings_utils.cpp:20:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:20:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:21:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:21:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:27:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:27:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputArrayOfArrays(cv::Inp D:\opencv\sources\modules\core\src\bindings_utils.cpp:50:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:50:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:51:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:51:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:57:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:57:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputOutputArray(cv::Input D:\opencv\sources\modules\core\src\bindings_utils.cpp:87:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:87:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:88:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:88:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp:94:30: warning: unknown conversion type character 'l' in format [- ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:94:30: warning: too many arguments for format [-Wformat-extra-args D:\opencv\sources\modules\core\src\bindings_utils.cpp: In function 'cv::String cv::utils::dumpInputOutputArrayOfArrays(c D:\opencv\sources\modules\core\src\bindings_utils.cpp:117:30: warning: unknown conversion type character 'l' in format [ ss << cv::format(" kind=0x%08llx", (long long int)argument.kind()); ^~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:117:30: warning: too many arguments for format [-Wformat-extra-arg D:\opencv\sources\modules\core\src\bindings_utils.cpp:118:30: warning: unknown conversion type character 'l' in format [ ss << cv::format(" flags=0x%08llx", (long long int)argument.getFlags()); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:118:30: warning: too many arguments for format [-Wformat-extra-arg D:\opencv\sources\modules\core\src\bindings_utils.cpp:124:30: warning: unknown conversion type character 'l' in format [ ss << cv::format(" total(-1)=%lld", (long long int)argument.total(-1)); ^~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\bindings_utils.cpp:124:30: warning: too many arguments for format [-Wformat-extra-arg

[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/channels.cpp.obj

// ------------------------------------------- 5TH WARNING ------------------------------------------- //

D:\opencv\sources\modules\core\src\channels.cpp: In function 'bool cv::ocl_mixChannels(cv::InputArrayOfArrays, cv::Input ': D:\opencv\sources\modules\core\src\channels.cpp:240:27: warning: unknown conversion type character 'z' in format [-Wform declsrc += format("DECLARE_INPUT_MAT(%zu)", i); ^~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:240:27: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:241:27: warning: unknown conversion type character 'z' in format [-Wform decldst += format("DECLARE_OUTPUT_MAT(%zu)", i); ^~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:241:27: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:242:29: warning: unknown conversion type character 'z' in format [-Wform indexdecl += format("DECLARE_INDEX(%zu)", i); ^~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:242:29: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:243:28: warning: unknown conversion type character 'z' in format [-Wform declproc += format("PROCESS_ELEM(%zu)", i); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:243:28: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\channels.cpp:244:26: warning: unknown conversion type character 'z' in format [-Wform declcn += format(" -D scn%zu=%d -D dcn%zu=%d", i, src[src_idx].channels(), i, dst[dst_idx].channels()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\channels.cpp:244:26: warning: unknown conversion type character 'z' in format [-Wform D:\opencv\sources\modules\core\src\channels.cpp:244:26: warning: too many arguments for format [-Wformat-extra-args]

[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/kmeans.cpp.obj [ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lapack.cpp.obj [ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lda.cpp.obj

// ------------------------------------------- 6TH WARNING ------------------------------------------- //

D:\opencv\sources\modules\core\src\lda.cpp: In static member function 'static cv::Mat cv::LDA::subspaceProject(cv::Input

D:\opencv\sources\modules\core\src\lda.cpp:187:39: warning: unknown conversion type character 'z' in format [-Wformat=] String error_message = format("Wrong mean shape for the given data matrix. Expected %d, but was %zu.", d, mean. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\lda.cpp:187:39: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\lda.cpp: In static member function 'static cv::Mat cv::LDA::subspaceReconstruct(cv::I y)': D:\opencv\sources\modules\core\src\lda.cpp:225:39: warning: unknown conversion type character 'z' in format [-Wformat=] String error_message = format("Wrong mean shape for the given eigenvector matrix. Expected %d, but was %zu.", W ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\lda.cpp:225:39: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\lda.cpp: In member function 'void cv::LDA::lda(cv::InputArrayOfArrays, cv::InputArray D:\opencv\sources\modules\core\src\lda.cpp:1079:39: warning: unknown conversion type character 'z' in format [-Wformat=] String error_message = format("The number of samples must equal the number of labels. Given %zu labels, %d samp ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\lda.cpp:1079:39: warning: too many arguments for format [-Wformat-extra-args]

[ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/logger.cpp.obj [ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lpsolver.cpp.obj

// ------------------------------------------- 7TH WARNING ------------------------------------------- //

[ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_expressions.cpp.obj [ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_iterator.cpp.obj [ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_operations.cpp.obj D:\opencv\sources\modules\core\src\matrix_operations.cpp: In function 'bool cv::ocl_reduce(cv::InputArray, cv::OutputArr D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: unknown conversion type character 'z' in forma cv::String build_opt = format("-D OP_REDUCE_PRE -D BUF_COLS=%d -D TILE_HEIGHT=%zu -D %s -D dim=1" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ " -D cn=%d -D ddepth=%d" ~~~~~~~~~~~~~~~~~~~~~~~~ " -D srcT=%s -D bufT=%s -D dstT=%s" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ " -D convertToWT=%s -D convertToBufT=%s -D convertToDT=%s%s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: format '%s' expects argument of type 'char', nsigned int'} [-Wformat=] D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: format '%d' expects argument of type 'int', bu ormat=] D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: format '%s' expects argument of type 'char', ] D:\opencv\sources\modules\core\src\matrix_operations.cpp:900:39: warning: too many arguments for format [-Wformat-extra-

[ 36%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_sparse.cpp.obj

// ------------------------------------------- 8TH WARNING ------------------------------------------- //

D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'bool cv::ocl::Kernel::Impl::run(int, size_t, size_t, b D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: unknown conversion type character 'z' in format [-Wformat=] (localsize ? cv::format("%zux%zux%zu", localsize[0], (dims > 1 ? localsize[1] : 1), (dims > 2 ? ).c_str(), ^~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3123:49: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: unknown conversion type character 'z' in format [-Wformat=] cv::String msg = cv::format("clEnqueueNDRangeKernel('%s', dims=%d, globalsize=%zux%zux%zu, localsize=%s) sync=% ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: unknown conversion type character 'z' in format [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: format '%s' expects argument of type 'char', but argument [-Wformat=] D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: format '%s' expects argument of type 'char', but argument D:\opencv\sources\modules\core\src\ocl.cpp:3121:37: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::ProgramSource::Impl::updateHash(const char D:\opencv\sources\modules\core\src\ocl.cpp:3334:34: warning: unknown conversion type character 'j' in format [-Wformat=] sourceHash_ = cv::format("%08jx", (uintmax_t)hash); ^~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:3334:34: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::OpenCLBufferPoolImpl::_allocateBufferEntry try&, size_t)': D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:9: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:9: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:48: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4306:9: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clCreateBuffer(capacity=%lld) => %p", (long long int)entry.capacity_, ( ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual bool cv::ocl::OpenCLAllocator::allocate(cv::UMat s) const': D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)u->size, u->origdata, (void)handle).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)u->size, u->origdata, (void)handle).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4704:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_USE_HOST_PTR|createFlags, sz=%lld ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: format '%p' expects argument of type 'void*', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                         (long long int)u->size, u->origdata, (void*)handle).c_str());
                         ~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: format '%p' expects argument of type 'void*', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                         (long long int)u->size, u->origdata, (void*)handle).c_str());
                         ~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4711:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clCreateBuffer(CL_MEM_COPY_HOST_PTR|CL_MEM_READ_WRITE|c , ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::OpenCLAllocator::deallocate_(cv::UMatData* D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4848:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (voi ta).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:68: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:4855:29: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%ll int)u->size).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::map(cv::UMatData* D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:213:42: note: in definition of macro 'CV_OCL_DBG_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: format '%p' expects argument of type 'void', but argument CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:64: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5000:21: note: in expansion of macro 'CV_OCL_DBG_CHECK_RESULT' CV_OCL_DBG_CHECK_RESULT(retval, cv::format("clEnqueueMapBuffer(handle=%p, sz=%lld) => %p", (void)u a).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5029:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueReadBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::unmap(cv::UMatDat D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5080:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueUnmapMemObject(handle=%p, data=%p, [sz=%lld])", (void* ize).c_str()); ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)u->size, alignedPtr.getAlignedPtr()).c_str()); ~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:52: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5100:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, 0, sz=%lld, data=%p, 0, ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::upload(cv::UMatDa nst size_t, const size_t, const size_t) const': D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)dstrawofs, (long long int)u->size, alignedPtr.getAlignedPtr()) ~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (void)u->handle, (long long int)dstrawofs, (long long int)u->size, alignedPtr.getAlignedPtr()) ~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5406:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueWriteBuffer(q, handle=%p, CL_TRUE, offset=%lld, sz=%ll ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'virtual void cv::ocl::OpenCLAllocator::copy(cv::UMatData nst size_t, const size_t, const size_t, const size_t, bool) const': D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:56: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:5581:17: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(retval, cv::format("clEnqueueCopyBuffer(q, src=%p, dst=%p, src_offset=%lld, dst_off ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp: In member function 'void cv::ocl::Image2D::Impl::init(const cv::UMat&, bool, D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)(src.cols * src.rows * src.elemSize()), (void)devData ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:193:42: note: in definition of macro 'CV_OCL_CHECK_RESULT' if (0) { const char* msg_ = (msg); CV_UNUSED(msg_); /* ensure const char* type (cv::String without c_str()) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: unknown conversion type character 'l' in format [-Wformat=] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: format '%p' expects argument of type 'void', but argument CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (long long int)(src.cols * src.rows * src.elemSize()), (void)devData ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:13: note: in expansion of macro 'CV_OCL_CHECK_RESULT' CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:6434:49: warning: too many arguments for format [-Wformat-extra-args] CV_OCL_CHECK_RESULT(err, cv::format("clCreateBuffer(CL_MEM_READ_ONLY, sz=%lld) => %p", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\core\src\ocl.cpp:186:106: note: in definition of macro 'CV_OCL_API_ERROR_MSG' cv::format("OpenCL error %s (%d) during call: %s", getOpenCLErrorString(check_result), check_result, msg) ^~~

// ------------------------------------------- 9TH WARNING ------------------------------------------- //

[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/emd.cpp.obj [ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/featureselect.cpp.obj

D:\opencv\sources\modules\imgproc\src\featureselect.cpp: In function 'bool cv::ocl_goodFeaturesToTrack(cv::InputArray, cv::Ou :InputArray, int, int, bool, double)': D:\opencv\sources\modules\imgproc\src\featureselect.cpp:129:31: warning: unknown conversion type character 'z' in format [-Wf format("-D OP_MAX_EIGEN_VAL -D WGS=%zu -D WGS2_ALIGNED=%d -D groupnum=%d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\imgproc\src\featureselect.cpp:129:31: warning: too many arguments for format [-Wformat-extra-args]

[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/filter.cpp.obj

// ------------------------------------------- 10TH WARNING ------------------------------------------- //

[ 42%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hershey_fonts.cpp.obj [ 42%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/histogram.cpp.obj

D:\opencv\sources\modules\imgproc\src\histogram.cpp: In function 'bool cv::ocl_calcHist1(cv::InputArray, cv::OutputArray, int D:\opencv\sources\modules\imgproc\src\histogram.cpp:1126:27: warning: unknown conversion type character 'z' in format [-Wform format("-D BINS=%d -D HISTS_COUNT=%d -D WGS=%zu -D kercn=%d -D T=%s%s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\imgproc\src\histogram.cpp:1126:27: warning: format '%s' expects argument of type 'char', but argum D:\opencv\sources\modules\imgproc\src\histogram.cpp:1126:27: warning: too many arguments for format [-Wformat-extra-args] D:\opencv\sources\modules\imgproc\src\histogram.cpp: In function 'bool cv::ocl_equalizeHist(cv::InputArray, cv::OutputArray)' D:\opencv\sources\modules\imgproc\src\histogram.cpp:3256:27: warning: unknown conversion type character 'z' in format [-Wform format("-D BINS=%d -D HISTS_COUNT=%d -D WGS=%zu -D kercn=%d -D T=%s%s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\imgproc\src\histogram.cpp:3256:27: warning: format '%s' expects argument of type 'char', but argum D:\opencv\sources\modules\imgproc\src\histogram.cpp:3256:27: warning: too many arguments for format [-Wformat-extra-args]

[ 42%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hough.cpp.obj

// ------------------------------------------- 11TH WARNING ------------------------------------------- //

[ 45%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_registry.cpp.obj

In file included from D:\opencv\sources\modules\videoio\src\videoio_registry.cpp:13: D:\opencv\sources\modules\videoio\src\cap_dshow.hpp:33:18: warning: 'virtual bool cv::VideoCapture_DShow::isOpened() const' can be marked override [-Wsuggest-ov erride] virtual bool isOpened() const; ^~~~~~~~

[ 45%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_c.cpp.obj

// ------------------------------------------- 12TH WARNING ------------------------------------------- //

[ 46%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/container_avi.cpp.obj In file included from D:/opencv/sources/modules/core/include/opencv2/core.hpp:54, from D:/opencv/sources/modules/core/include/opencv2/core/types_c.h:124, from D:/opencv/sources/modules/core/include/opencv2/core/core_c.h:48, from D:/opencv/sources/modules/videoio/include/opencv2/videoio/videoio_c.h:45, from D:/opencv/sources/modules/videoio/include/opencv2/videoio/container_avi.private.hpp:13, from D:\opencv\sources\modules\videoio\src\container_avi.cpp:5: D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = int; S = unsigned int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:239:123: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = long long int; S = long long unsigne d int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:249:106: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = unsigned int; S = int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:671:118: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char) [with D = long long int; S = unsigned int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:750:108: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp: In instantiation of 'D cv::safe_int_cast(S, const char*) [with D = unsigned int; S = unsigned int]': D:\opencv\sources\modules\videoio\src\container_avi.cpp:963:125: required from here D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: unknown conversion type character 'j' in format [-Wformat=] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~ D:\opencv\sources\modules\videoio\src\container_avi.cpp:25:46: warning: too many arguments for format [-Wformat-extra-args] CV_Error_(Error::StsOutOfRange, ("Can not convert integer values (%s -> %s), value 0x%jx is out of range", typeid(S).name(), typeid(D).name(), (uin tmax_t)val)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/opencv/sources/modules/core/include/opencv2/core/base.hpp:334:61: note: in definition of macro 'CV_Error_' #define CV_Error_( code, args ) cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ ) ^~~~

// ------------------------------------------- 13TH WARNING ------------------------------------------- //

[ 46%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj In file included from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:45: D:\opencv\sources\modules\videoio\src\cap_dshow.hpp:33:18: warning: 'virtual bool cv::VideoCapture_DShow::isOpened() const' can be marked override [-Wsuggest-ov erride] virtual bool isOpened() const; ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:692:26: warning: 'virtual ULONG SampleGrabberCallback::AddRef()' can be marked override [-Wsuggest-override]

 STDMETHODIMP_(ULONG) AddRef() { return 1; }
                      ^~~~~~

D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:693:26: warning: 'virtual ULONG SampleGrabberCallback::Release()' can be marked override [-Wsuggest-override ] STDMETHODIMP_(ULONG) Release() { return 2; } ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:697:18: warning: 'virtual HRESULT SampleGrabberCallback::QueryInterface(const IID&, void*)' can be marked o verride [-Wsuggest-override] STDMETHODIMP QueryInterface(REFIID, void *ppvObject){ ^~~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:705:18: warning: 'virtual HRESULT SampleGrabberCallback::SampleCB(double, IMediaSample)' can be marked over ride [-Wsuggest-override] STDMETHODIMP SampleCB(double , IMediaSample *pSample){ ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:729:18: warning: 'virtual HRESULT SampleGrabberCallback::BufferCB(double, BYTE, long int)' can be marked ov erride [-Wsuggest-override] STDMETHODIMP BufferCB(double, BYTE , long){ ^~~~~~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getMediaSubtypeAsString(GUID, char)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2297:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope if( type == MEDIASUBTYPE_RGB24) sprintf(tmpStr, "RGB24"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2297:57: warning: left operand of comma operator has no effect [-Wunused-value] if( type == MEDIASUBTYPE_RGB24) sprintf(tmpStr, "RGB24"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2298:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2298:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2298:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2299:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2299:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2299:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555"); ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2300:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2300:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2300:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565"); ^~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2301:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YUY2) sprintf(tmpStr, "YUY2"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2301:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YUY2) sprintf(tmpStr, "YUY2"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2301:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YUY2) sprintf(tmpStr, "YUY2"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2302:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YVYU) sprintf(tmpStr, "YVYU"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2302:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YVYU) sprintf(tmpStr, "YVYU"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2302:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YVYU) sprintf(tmpStr, "YVYU"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2303:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YUYV) sprintf(tmpStr, "YUYV"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2303:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YUYV) sprintf(tmpStr, "YUYV"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2303:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YUYV) sprintf(tmpStr, "YUYV"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2304:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_IYUV) sprintf(tmpStr, "IYUV"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2304:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_IYUV) sprintf(tmpStr, "IYUV"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2304:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_IYUV) sprintf(tmpStr, "IYUV"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2305:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_UYVY) sprintf(tmpStr, "UYVY"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2305:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_UYVY) sprintf(tmpStr, "UYVY"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2305:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_UYVY) sprintf(tmpStr, "UYVY"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2306:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YV12) sprintf(tmpStr, "YV12"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2306:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YV12) sprintf(tmpStr, "YV12"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2306:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YV12) sprintf(tmpStr, "YV12"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2307:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_YVU9) sprintf(tmpStr, "YVU9"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2307:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_YVU9) sprintf(tmpStr, "YVU9"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2307:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_YVU9) sprintf(tmpStr, "YVU9"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2308:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y411) sprintf(tmpStr, "Y411"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2308:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y411) sprintf(tmpStr, "Y411"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2308:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y411) sprintf(tmpStr, "Y411"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2309:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y41P) sprintf(tmpStr, "Y41P"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2309:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y41P) sprintf(tmpStr, "Y41P"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2309:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y41P) sprintf(tmpStr, "Y41P"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2310:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y211) sprintf(tmpStr, "Y211"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2310:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y211) sprintf(tmpStr, "Y211"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2310:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y211) sprintf(tmpStr, "Y211"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2311:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_AYUV) sprintf(tmpStr, "AYUV"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2311:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_AYUV) sprintf(tmpStr, "AYUV"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2311:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_AYUV) sprintf(tmpStr, "AYUV"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2312:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_MJPG) sprintf(tmpStr, "MJPG"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2312:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_MJPG) sprintf(tmpStr, "MJPG"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2312:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_MJPG) sprintf(tmpStr, "MJPG"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2313:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y800) sprintf(tmpStr, "Y800"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2313:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y800) sprintf(tmpStr, "Y800"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2313:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y800) sprintf(tmpStr, "Y800"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2314:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_Y8) sprintf(tmpStr, "Y8"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2314:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_Y8) sprintf(tmpStr, "Y8"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2314:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_Y8) sprintf(tmpStr, "Y8"); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2315:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_GREY) sprintf(tmpStr, "GREY"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2315:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_GREY) sprintf(tmpStr, "GREY"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2315:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_GREY) sprintf(tmpStr, "GREY"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2316:5: error: 'else' without a previous 'if' else if(type == MEDIASUBTYPE_I420) sprintf(tmpStr, "I420"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2316:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_I420) sprintf(tmpStr, "I420"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2316:57: warning: left operand of comma operator has no effect [-Wunused-value] else if(type == MEDIASUBTYPE_I420) sprintf(tmpStr, "I420"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2317:5: error: 'else' without a previous 'if' else if (type == MEDIASUBTYPE_BY8) sprintf(tmpStr, "BY8"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2317:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if (type == MEDIASUBTYPE_BY8) sprintf(tmpStr, "BY8"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2317:57: warning: left operand of comma operator has no effect [-Wunused-value] else if (type == MEDIASUBTYPE_BY8) sprintf(tmpStr, "BY8"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2318:5: error: 'else' without a previous 'if' else if (type == MEDIASUBTYPE_Y16) sprintf(tmpStr, "Y16"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2318:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if (type == MEDIASUBTYPE_Y16) sprintf(tmpStr, "Y16"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2318:57: warning: left operand of comma operator has no effect [-Wunused-value] else if (type == MEDIASUBTYPE_Y16) sprintf(tmpStr, "Y16"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2319:5: error: 'else' without a previous 'if' else sprintf(tmpStr, "OTHER"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2319:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else sprintf(tmpStr, "OTHER"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2319:26: warning: left operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "OTHER"); ^~~~~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getVideoPropertyAsString(int, char)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2345:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope if ( prop==VideoProcAmp_Brightness) sprintf(tmpStr, "Brightness"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2345:57: warning: left operand of comma operator has no effect [-Wunused-value] if ( prop==VideoProcAmp_Brightness) sprintf(tmpStr, "Brightness"); ^~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2346:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2346:44: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2346:60: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast"); ^~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2347:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2347:46: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2347:62: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation"); ^~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2348:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2348:39: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2348:55: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2349:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2349:40: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2349:56: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2350:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2350:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2350:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2351:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2351:47: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2351:63: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable"); ^~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2352:5: error: 'else' without a previous 'if' else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2352:45: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2352:61: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness"); ^~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:5: error: 'else' without a previous 'if' else sprintf(tmpStr, "%u",prop); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else sprintf(tmpStr, "%u",prop); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:26: warning: left operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2353:31: warning: right operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getCameraPropertyAsString(int, char)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2448:35: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope if ( prop==CameraControl_Pan) sprintf(tmpStr, "Pan"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2448:51: warning: left operand of comma operator has no effect [-Wunused-value] if ( prop==CameraControl_Pan) sprintf(tmpStr, "Pan"); ^~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2449:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2449:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2449:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2450:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2450:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2450:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2451:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2451:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2451:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2452:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2452:45: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2452:61: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure"); ^~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2453:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2453:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2453:57: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris"); ^~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2454:5: error: 'else' without a previous 'if' else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus"); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2454:42: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2454:58: warning: left operand of comma operator has no effect [-Wunused-value] else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus"); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:5: error: 'else' without a previous 'if' else sprintf(tmpStr, "%u",prop); ^~~~ In file included from C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/i686-w64-mingw32/include/DShow.h:33, from D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else sprintf(tmpStr, "%u",prop); ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:26: warning: left operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2455:31: warning: right operand of comma operator has no effect [-Wunused-value] else sprintf(tmpStr, "%u",prop); ^~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp: In member function 'virtual bool cv::VideoCapture_DShow::setProperty(int, double)': D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3441:10: error: jump to case label [-fpermissive] case CV_CAP_PROP_AUTOFOCUS: ^~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3428:13: note: crosses initialization of 'int fps' int fps = cvRound(propVal); ^~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3453:10: error: jump to case label [-fpermissive] case CV_CAP_PROP_CONVERT_RGB: ^~~~~~~~~~~~~~~~~~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3444:14: note: crosses initialization of 'bool enabled' bool enabled = cvRound(propVal) == 1; ^~~~~~~ D:\opencv\sources\modules\videoio\src\cap_dshow.cpp:3428:13: note: crosses initialization of 'int fps' int fps = cvRound(propVal); ^~~ ^~ // ------------------------------------------- WARNING END ------------------------------------------- //

// ------------------------------------------- ERROR & MAKING STOPPED ------------------------------------------- //

mingw32-make[2]: * [modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:161: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj] Error 1

mingw32-make[1]: * [CMakeFiles\Makefile2:2511: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2 mingw32-make: * [Makefile:162: all] Error 2

D:\opencv\build\my_build>

// ------------------------------------------- END ------------------------------------------- //

END