Merge pull request #12673 from alalek:fix_build_warnings
* fix build warnings * python: forbid wrapping of functions with "void*" arguments
This commit is contained in:
committed by
GitHub
parent
a8b0db4e5d
commit
5575171652
@@ -92,7 +92,7 @@ bool pyopencv_to(PyObject* dst, TYPE& src, const char* name)
|
||||
{ \
|
||||
if (!dst || dst == Py_None) \
|
||||
return true; \
|
||||
std::underlying_type<TYPE>::type underlying; \
|
||||
std::underlying_type<TYPE>::type underlying = 0; \
|
||||
\
|
||||
if (!pyopencv_to(dst, underlying, name)) return false; \
|
||||
src = static_cast<TYPE>(underlying); \
|
||||
|
||||
Reference in New Issue
Block a user