quench some warnings in operators.h

This commit is contained in:
Wenzel Jakob 2016-02-16 13:36:04 +01:00
parent 0880294924
commit f8584b630b

View File

@ -12,6 +12,10 @@
#include "pybind11.h" #include "pybind11.h"
#include <type_traits> #include <type_traits>
#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(pybind11)
NAMESPACE_BEGIN(detail) NAMESPACE_BEGIN(detail)