File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1717# pragma GCC diagnostic push
1818# pragma GCC diagnostic ignored "-Wconversion"
1919# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
20+ # if __GNUC__ >= 7
21+ # pragma GCC diagnostic ignored "-Wint-in-bool-context"
22+ # endif
2023#endif
2124
2225#include < Eigen/Core>
2326#include < Eigen/SparseCore>
2427
25- #if defined(__GNUG__) || defined(__clang__)
26- # pragma GCC diagnostic pop
27- #endif
28-
2928#if defined(_MSC_VER)
30- #pragma warning(push)
31- #pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
29+ # pragma warning(push)
30+ # pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
3231#endif
3332
3433NAMESPACE_BEGIN (pybind11)
@@ -234,6 +233,8 @@ struct type_caster<Type, enable_if_t<is_eigen_sparse<Type>::value>> {
234233NAMESPACE_END (detail)
235234NAMESPACE_END(pybind11)
236235
237- #if defined(_MSC_VER)
238- #pragma warning(pop)
236+ #if defined(__GNUG__) || defined(__clang__)
237+ # pragma GCC diagnostic pop
238+ #elif defined(_MSC_VER)
239+ # pragma warning(pop)
239240#endif
You can’t perform that action at this time.
0 commit comments