diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index f5a483f97..302a8a09c 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -25,6 +25,8 @@ # pragma GCC diagnostic ignored "-Wunused-but-set-parameter" # pragma GCC diagnostic ignored "-Wunused-but-set-variable" # pragma GCC diagnostic ignored "-Wmissing-field-initializers" +# pragma GCC diagnostic ignored "-Wstrict-aliasing" +# pragma GCC diagnostic ignored "-Wattributes" #endif #include "attr.h"