|
41 | 41 | #endif |
42 | 42 |
|
43 | 43 | #ifdef PYBIND11_COMPILER_MSVC |
44 | | -# define PYBIND11_DISABLE_WARNING_MSVC(name) PYBIND11_PRAGMA(warning(disable : name)) |
| 44 | +# define PYBIND11_WARNING_DISABLE_MSVC(name) PYBIND11_PRAGMA(warning(disable : name)) |
45 | 45 | #else |
46 | | -# define PYBIND11_DISABLE_WARNING_MSVC(name) |
| 46 | +# define PYBIND11_WARNING_DISABLE_MSVC(name) |
47 | 47 | #endif |
48 | 48 |
|
49 | 49 | #ifdef PYBIND11_COMPILER_CLANG |
50 | | -# define PYBIND11_DISABLE_WARNING_CLANG(name) PYBIND11_PRAGMA(clang diagnostic ignored name) |
| 50 | +# define PYBIND11_WARNING_DISABLE_CLANG(name) PYBIND11_PRAGMA(clang diagnostic ignored name) |
51 | 51 | #else |
52 | | -# define PYBIND11_DISABLE_WARNING_CLANG(name) |
| 52 | +# define PYBIND11_WARNING_DISABLE_CLANG(name) |
53 | 53 | #endif |
54 | 54 |
|
55 | 55 | #ifdef PYBIND11_COMPILER_GCC |
56 | | -# define PYBIND11_DISABLE_WARNING_GCC(name) PYBIND11_PRAGMA(GCC diagnostic ignored name) |
| 56 | +# define PYBIND11_WARNING_DISABLE_GCC(name) PYBIND11_PRAGMA(GCC diagnostic ignored name) |
57 | 57 | #else |
58 | | -# define PYBIND11_DISABLE_WARNING_GCC(name) |
| 58 | +# define PYBIND11_WARNING_DISABLE_GCC(name) |
59 | 59 | #endif |
60 | 60 |
|
61 | 61 | #ifdef PYBIND11_COMPILER_INTEL |
62 | | -# define PYBIND11_DISABLE_WARNING_INTEL(name) PYBIND11_PRAGMA(warning disable name) |
| 62 | +# define PYBIND11_WARNING_DISABLE_INTEL(name) PYBIND11_PRAGMA(warning disable name) |
63 | 63 | #else |
64 | | -# define PYBIND11_DISABLE_WARNING_INTEL(name) |
| 64 | +# define PYBIND11_WARNING_DISABLE_INTEL(name) |
65 | 65 | #endif |
66 | 66 |
|
67 | 67 | #define PYBIND11_NAMESPACE_BEGIN(name) \ |
|
204 | 204 | /// Include Python header, disable linking to pythonX_d.lib on Windows in debug mode |
205 | 205 | #if defined(_MSC_VER) |
206 | 206 | PYBIND11_WARNING_PUSH |
207 | | -PYBIND11_DISABLE_WARNING_MSVC(4505) |
| 207 | +PYBIND11_WARNING_DISABLE_MSVC(4505) |
208 | 208 | // C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only) |
209 | 209 | # if defined(_DEBUG) && !defined(Py_DEBUG) |
210 | 210 | // Workaround for a VS 2022 issue. |
|
0 commit comments