Closed berak closed 6 years ago
3.4.1
You should update code from the main repository. CV_Error() is replaced to CV_ErrorNoReturn() implementation recently (for OpenCV modules code only, user apps will require modification in 4.x branch).
Or disable -Werror compiler flag.
CV_Error()
always throw exception, so any code after that is a bug.
ok, so it's better done by using CV_ErrorNoReturn
in those places.
ok, let me close this, as it's probably not relevant enough, and the buildbot is not using the ,-Wreturn-type flag, either.
originally from here: http://answers.opencv.org/question/192097/problem-with-building-opencv_contrib/
System information (version)
Detailed description
clang9.1 finds several functions with missing return values
[-Werror,-Wreturn-type]
: