Silence a couple of 'unused variable' warnings in c++03 tests. No functional change

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@298582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2017-03-23 06:25:26 +00:00
parent ad3680b23e
commit 46da6b8295
2 changed files with 2 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ int main()
// Without rvalue references, ptr got copied into
// the shared_ptr destructor and the copy was
// destroyed during unwinding.
(void) raw_ptr; // silence 'unused variable' warning
assert(A::count == 0);
assert(B::count == 0);
#endif

View File

@@ -80,6 +80,7 @@ int main()
assert(B::count == 1);
assert(ptr.get() == raw_ptr);
#else
(void) raw_ptr; // silence 'unused variable' warning
assert(A::count == 0);
assert(B::count == 0);
assert(ptr.get() == 0);