diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e955df76..45d85e7a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,7 +106,6 @@ set(PYBIND11_HEADERS include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h include/pybind11/detail/init.h include/pybind11/detail/internals.h - include/pybind11/detail/pragma_warning_block.h include/pybind11/detail/smart_holder_poc.h include/pybind11/detail/smart_holder_sfinae_hooks_only.h include/pybind11/detail/smart_holder_type_casters.h diff --git a/include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h b/include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h index 29fded53b..7c00fe98c 100644 --- a/include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h +++ b/include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h @@ -4,8 +4,6 @@ #pragma once -#include "pragma_warning_block.h" - #include "common.h" #include diff --git a/include/pybind11/detail/pragma_warning_block.h b/include/pybind11/detail/pragma_warning_block.h deleted file mode 100644 index bedc65da9..000000000 --- a/include/pybind11/detail/pragma_warning_block.h +++ /dev/null @@ -1,7 +0,0 @@ -#pragma once - -#if defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER) -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wunused-but-set-parameter" -# pragma GCC diagnostic ignored "-Wattributes" -#endif diff --git a/include/pybind11/detail/smart_holder_sfinae_hooks_only.h b/include/pybind11/detail/smart_holder_sfinae_hooks_only.h index d0a52b9a2..f32485475 100644 --- a/include/pybind11/detail/smart_holder_sfinae_hooks_only.h +++ b/include/pybind11/detail/smart_holder_sfinae_hooks_only.h @@ -4,8 +4,6 @@ #pragma once -#include "pragma_warning_block.h" - #include "common.h" #include diff --git a/include/pybind11/detail/smart_holder_type_casters.h b/include/pybind11/detail/smart_holder_type_casters.h index a72de90e0..7ac9a5d35 100644 --- a/include/pybind11/detail/smart_holder_type_casters.h +++ b/include/pybind11/detail/smart_holder_type_casters.h @@ -4,8 +4,6 @@ #pragma once -#include "pragma_warning_block.h" - #include "../gil.h" #include "../pytypes.h" #include "../trampoline_self_life_support.h" diff --git a/include/pybind11/smart_holder.h b/include/pybind11/smart_holder.h index 7d0e389d3..f852f77e2 100644 --- a/include/pybind11/smart_holder.h +++ b/include/pybind11/smart_holder.h @@ -4,8 +4,6 @@ #pragma once -#include "detail/pragma_warning_block.h" - #include "detail/common.h" #include "detail/smart_holder_type_casters.h" #include "pybind11.h" diff --git a/include/pybind11/trampoline_self_life_support.h b/include/pybind11/trampoline_self_life_support.h index c37e2226f..b7e1f12c4 100644 --- a/include/pybind11/trampoline_self_life_support.h +++ b/include/pybind11/trampoline_self_life_support.h @@ -4,8 +4,6 @@ #pragma once -#include "detail/pragma_warning_block.h" - #include "detail/common.h" #include "detail/smart_holder_poc.h" #include "detail/type_caster_base.h" diff --git a/tests/extra_python_package/test_files.py b/tests/extra_python_package/test_files.py index 456c188a5..a176126d8 100644 --- a/tests/extra_python_package/test_files.py +++ b/tests/extra_python_package/test_files.py @@ -45,7 +45,6 @@ detail_headers = { "include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h", "include/pybind11/detail/init.h", "include/pybind11/detail/internals.h", - "include/pybind11/detail/pragma_warning_block.h", "include/pybind11/detail/smart_holder_poc.h", "include/pybind11/detail/smart_holder_sfinae_hooks_only.h", "include/pybind11/detail/smart_holder_type_casters.h",