mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 12:02:36 +08:00
Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@318804 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -35,7 +35,7 @@ test(S s, typename S::size_type pos)
|
||||
{
|
||||
try
|
||||
{
|
||||
(void)s.at(pos);
|
||||
TEST_IGNORE_NODISCARD s.at(pos);
|
||||
assert(false);
|
||||
}
|
||||
catch (std::out_of_range&)
|
||||
@@ -44,7 +44,7 @@ test(S s, typename S::size_type pos)
|
||||
}
|
||||
try
|
||||
{
|
||||
(void)cs.at(pos);
|
||||
TEST_IGNORE_NODISCARD cs.at(pos);
|
||||
assert(false);
|
||||
}
|
||||
catch (std::out_of_range&)
|
||||
|
||||
Reference in New Issue
Block a user