Skip to content

Commit 2c8aa67

Browse files
committed
Moving pragma for C4505 from pybind11.h to existing list in detail/common.h.
1 parent b1fdbe6 commit 2c8aa67

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/pybind11/detail/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
# define HAVE_ROUND 1
122122
# endif
123123
# pragma warning(push)
124-
# pragma warning(disable: 4510 4610 4512 4005)
124+
# pragma warning(disable: 4510 4610 4512 4005 4505)
125125
# if defined(_DEBUG) && !defined(Py_DEBUG)
126126
# define PYBIND11_DEBUG_MARKER
127127
# undef _DEBUG

include/pybind11/pybind11.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
1414
# pragma warning(push)
1515
# pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
16-
# pragma warning(disable: 4505) // warning C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
1716
#elif defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
1817
# pragma GCC diagnostic push
1918
# pragma GCC diagnostic ignored "-Wunused-but-set-parameter"

0 commit comments

Comments
 (0)