Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warn disable for GGC 12 bound checking error (#5355)
Issue: #5224 The `internals.registered_types_py...` line in pybind11.h triggers a false-positive bounds checking warning in GCC 12. This is discussed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115824. The workaround implemented is taken from suggestions then refactored to use the `PYBIND11_WARNING_PUSH` and `PYBIND11_WARNING_POP` MACROS.
- Loading branch information