summaryrefslogtreecommitdiff
path: root/test/std/strings/basic.string/string.access/at.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/strings/basic.string/string.access/at.pass.cpp')
-rw-r--r--test/std/strings/basic.string/string.access/at.pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/std/strings/basic.string/string.access/at.pass.cpp b/test/std/strings/basic.string/string.access/at.pass.cpp
index 891648930..8bfb829b0 100644
--- a/test/std/strings/basic.string/string.access/at.pass.cpp
+++ b/test/std/strings/basic.string/string.access/at.pass.cpp
@@ -35,7 +35,7 @@ test(S s, typename S::size_type pos)
{
try
{
- s.at(pos);
+ (void)s.at(pos);
assert(false);
}
catch (std::out_of_range&)
@@ -44,7 +44,7 @@ test(S s, typename S::size_type pos)
}
try
{
- cs.at(pos);
+ (void)cs.at(pos);
assert(false);
}
catch (std::out_of_range&)