mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-22 07:51:39 +08:00
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:
@@ -52,7 +52,7 @@ int main(int, char**)
|
||||
#ifdef _LIBCPP_DEBUG
|
||||
{
|
||||
std::string s;
|
||||
char c = s.back();
|
||||
(void) s.back();
|
||||
assert(false);
|
||||
}
|
||||
#endif
|
||||
|
@@ -52,7 +52,7 @@ int main(int, char**)
|
||||
#ifdef _LIBCPP_DEBUG
|
||||
{
|
||||
std::string s;
|
||||
char c = s.front();
|
||||
(void) s.front();
|
||||
assert(false);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user