From f8584b630b82f8a2bfaa70a521efffdb0cb2ef70 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 16 Feb 2016 13:36:04 +0100 Subject: [PATCH] quench some warnings in operators.h --- include/pybind11/operators.h | 4 ++++ 1 file changed, 4 insertions(+) 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)