Get rid of a bunch of 'unused variable' warnings in test when run with debug_level set. NFC

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@359672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2019-05-01 11:25:58 +00:00
parent 548aa18445
commit 0c6eb81c47
5 changed files with 8 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ int main(int, char**)
#ifdef _LIBCPP_DEBUG
{
std::string s;
char c = s.back();
(void) s.back();
assert(false);
}
#endif

View File

@@ -52,7 +52,7 @@ int main(int, char**)
#ifdef _LIBCPP_DEBUG
{
std::string s;
char c = s.front();
(void) s.front();
assert(false);
}
#endif