From d9d124b3c8b38fbc7b6be1681d01ebc59d2fd48b Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 30 Jul 2021 03:37:14 -0700 Subject: [PATCH] Moving pragma for C4505 from pybind11.h to existing list in detail/common.h. --- include/pybind11/detail/common.h | 2 +- include/pybind11/pybind11.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index 0add6272f5..c52e72ff59 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -121,7 +121,7 @@ # define HAVE_ROUND 1 # endif # pragma warning(push) -# pragma warning(disable: 4510 4610 4512 4005) +# pragma warning(disable: 4510 4610 4512 4005 4505) # if defined(_DEBUG) && !defined(Py_DEBUG) # define PYBIND11_DEBUG_MARKER # undef _DEBUG diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 16615421dc..ec6bd8d351 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -13,7 +13,6 @@ #if defined(_MSC_VER) && !defined(__INTEL_COMPILER) # pragma warning(push) # pragma warning(disable: 4127) // warning C4127: Conditional expression is constant -# pragma warning(disable: 4505) // warning C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only) #elif defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER) # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wunused-but-set-parameter"