Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sudhanshu Sane
VTK-m
Commits
0130088b
Commit
0130088b
authored
Apr 09, 2019
by
Robert Maynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress more self-assign-overloaded warnings found by clang
parent
fa545585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
vtkm/internal/testing/UnitTestArrayPortalValueReference.cxx
vtkm/internal/testing/UnitTestArrayPortalValueReference.cxx
+11
-0
No files found.
vtkm/internal/testing/UnitTestArrayPortalValueReference.cxx
View file @
0130088b
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment