diff --git a/cv_bridge/src/module.hpp b/cv_bridge/src/module.hpp index 97dcc17fa..3306f2d70 100644 --- a/cv_bridge/src/module.hpp +++ b/cv_bridge/src/module.hpp @@ -42,9 +42,10 @@ PyObject * pyopencv_from(const cv::Mat & m); #endif #if PYTHON3 -static int do_numpy_import() +static void * do_numpy_import() { import_array(); + return NULL; } #else static void do_numpy_import()