Commit 0130088b authored by Robert Maynard's avatar Robert Maynard

Suppress more self-assign-overloaded warnings found by clang

parent fa545585
......@@ -217,6 +217,13 @@ void TryOperators(vtkm::Id index, vtkm::internal::ArrayPortalValueReference<Arra
VTKM_TEST_ASSERT((ref / expected) == (expected / expected));
VTKM_TEST_ASSERT((expected / ref) == (expected / expected));
#if defined(VTKM_CLANG) && __clang_major__ >= 7
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunknown-warning-option"
#pragma clang diagnostic ignored "-Wself-assign-overloaded"
#endif
ref += ref;
expected += expected;
VTKM_TEST_ASSERT(ref == expected);
......@@ -245,6 +252,10 @@ void TryOperators(vtkm::Id index, vtkm::internal::ArrayPortalValueReference<Arra
expected /= operand;
VTKM_TEST_ASSERT(ref == expected);
#if defined(VTKM_CLANG) && __clang_major__ >= 7
#pragma clang diagnostic pop
#endif
// Reset ref
ref = TestValue(index, ValueType());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment