diff --git a/include/pybind11/operators.h b/include/pybind11/operators.h index 9865d4430..7eab419c1 100644 --- a/include/pybind11/operators.h +++ b/include/pybind11/operators.h @@ -12,6 +12,10 @@ #include "pybind11.h" #include +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wunsequenced" // multiple unsequenced modifications to 'self' (when using def(py::self OP Type())) +#endif + NAMESPACE_BEGIN(pybind11) NAMESPACE_BEGIN(detail)