diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index b29a8c037f4..beaed0b9135 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -52,7 +52,7 @@ #endif #ifdef PYBIND11_COMPILER_CLANG -# define PYBIND11_DISABLE_WARNING_CLANG(name) PYBIND11_PRAGMA(clang diagnostic push # name) +# define PYBIND11_DISABLE_WARNING_CLANG(name) PYBIND11_PRAGMA(clang diagnostic ignored # name) #else # define PYBIND11_DISABLE_WARNING_CLANG(name) #endif