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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user