File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -499,12 +499,12 @@ extern "C" inline void pybind11_object_dealloc(PyObject *self) {
499499 Py_DECREF (type);
500500}
501501
502- # pragma GCC diagnostic push
503- # pragma GCC diagnostic ignored "-Wredundant-decls"
502+ PYBIND11_WARNING_PUSH
503+ PYBIND11_WARNING_DISABLE_GCC ( " -Wredundant-decls" )
504504
505505std::string error_string();
506506
507- # pragma GCC diagnostic pop
507+ PYBIND11_WARNING_POP
508508
509509/* * Create the type which can be used as a common base for all classes. This is
510510 needed in order to satisfy Python's requirements for multiple inheritance.
Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
3232
3333PYBIND11_NAMESPACE_BEGIN(detail)
3434
35- # pragma GCC diagnostic push
36- # pragma GCC diagnostic ignored "-Wredundant-decls"
35+ PYBIND11_WARNING_PUSH
36+ PYBIND11_WARNING_DISABLE_GCC( " -Wredundant-decls" )
3737
3838// forward declarations
3939PyThreadState *get_thread_state_unchecked();
4040
41- # pragma GCC diagnostic pop
41+ PYBIND11_WARNING_POP
4242
4343PYBIND11_NAMESPACE_END (detail)
4444
You can’t perform that action at this time.
0 commit comments