diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index 8f1eb3a214..b4a9085735 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -1,9 +1,13 @@ #if defined(_MSC_VER) && (_MSC_VER >= 1800) // eliminating duplicated round() declaration #define HAVE_ROUND 1 +#pragma warning(push) +#pragma warning(disable:5033) // 'register' is no longer a supported storage class #endif - #include +#if defined(_MSC_VER) && (_MSC_VER >= 1800) +#pragma warning(pop) +#endif #define MODULESTR "cv2" #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION