diff options
author | Jordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com> | 2020-02-06 00:59:48 +0300 |
---|---|---|
committer | Jordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com> | 2020-02-06 00:59:48 +0300 |
commit | 432be4852c4cd3807e26f90904e3a4cb397fee3a (patch) | |
tree | 36d8fef432fe16128612cbe336434c78057a4a38 /tests | |
parent | 5cf1610cfe10ca083dd9eaf14cf9a12f2cb63692 (diff) |
captureing result of iterator comparisons to address -Wunused-comparison
Diffstat (limited to 'tests')
-rw-r--r-- | tests/span_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index c078f3a..9dbfb42 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -1102,8 +1102,8 @@ TEST(span_test, from_array_constructor) { span<int> s = a; span<int> s2 = b; - EXPECT_DEATH(s.begin() == s2.begin(), deathstring); - EXPECT_DEATH(s.begin() <= s2.begin(), deathstring); + EXPECT_DEATH(bool _ = (s.begin() == s2.begin()), deathstring); + EXPECT_DEATH(bool _ = (s.begin() <= s2.begin()), deathstring); } } |