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:
Alexander Alekhin
2018-09-28 16:53:05 +03:00
committed by GitHub
parent a8b0db4e5d
commit 5575171652
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -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); \