diff --git a/src/python/pybind11/src/pyxrt.cpp b/src/python/pybind11/src/pyxrt.cpp index b5063bfcc41..614bf1860c7 100644 --- a/src/python/pybind11/src/pyxrt.cpp +++ b/src/python/pybind11/src/pyxrt.cpp @@ -31,6 +31,10 @@ // C++11 includes #include +#ifdef _MSC_VER +#pragma warning(disable: 4996) // C4996: deprecated function; Python binding delegates to C++ +#endif + namespace py = pybind11; PYBIND11_MAKE_OPAQUE(std::vector); @@ -493,4 +497,3 @@ PYBIND11_MODULE(pyxrt, m) { }), "Wait for the specified timeout for the runlist to complete"); } -