Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2020-02-06 00:59:48 +0300
committerJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2020-02-06 00:59:48 +0300
commit432be4852c4cd3807e26f90904e3a4cb397fee3a (patch)
tree36d8fef432fe16128612cbe336434c78057a4a38 /tests/span_tests.cpp
parent5cf1610cfe10ca083dd9eaf14cf9a12f2cb63692 (diff)
captureing result of iterator comparisons to address -Wunused-comparison
Diffstat (limited to 'tests/span_tests.cpp')
-rw-r--r--tests/span_tests.cpp4
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);
}
}