Skip to content

apps(model_diagnostics): fix invalid callback#19829

Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom
alalek:hotfix_19693
Apr 1, 2021
Merged

apps(model_diagnostics): fix invalid callback#19829
opencv-pushbot merged 1 commit intoopencv:masterfrom
alalek:hotfix_19693

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Apr 1, 2021

relates #19693

Compiler message (Ubuntu 20.04):

/build/master_openvino-skl-lin64/opencv/apps/model-diagnostics/model_diagnostics.cpp:57:34: warning: cast between incompatible function types from 'void ()(const cv::Exception&)' to 'cv::ErrorCallback' {aka 'int ()(int, const char*, const char*, const char*, int, void*)'} [-Wcast-function-type]

   57 |     redirectError((ErrorCallback)diagnosticsErrorCallback, NULL);
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
buildworker:Custom=linux-1
build_image:Custom=ubuntu-openvino-2021.3.0:20.04
test_modules:Custom=dnn,gapi,python2,python3,java
# disabled due high memory usage: test_opencl:Custom=ON
test_opencl:Custom=OFF
test_bigdata:Custom=1
test_filter:Custom=*

@alalek
Copy link
Copy Markdown
Member Author

alalek commented Apr 1, 2021

👍

@opencv-pushbot opencv-pushbot merged commit b40d24a into opencv:master Apr 1, 2021
@alalek alalek mentioned this pull request Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug category: apps OpenCV builtin tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants