diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-08-03 05:46:36 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-08-03 05:46:36 +0000 |
commit | 7da93bb1540a7f0be632f8ce910aa10c041546b1 (patch) | |
tree | eaa99602d1d228c551329b1bb73e2e8da4f195c4 /libcxx/test/support | |
parent | 196986ca95d6bd4b78ee59a08ab7bd42614f2e25 (diff) | |
download | bcm5719-llvm-7da93bb1540a7f0be632f8ce910aa10c041546b1.tar.gz bcm5719-llvm-7da93bb1540a7f0be632f8ce910aa10c041546b1.zip |
Silence another occurrence of MSVC's suprious unused warning. Patch from STL@microsoft.com
llvm-svn: 277572
Diffstat (limited to 'libcxx/test/support')
-rw-r--r-- | libcxx/test/support/test_allocator.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcxx/test/support/test_allocator.h b/libcxx/test/support/test_allocator.h index 466c7fabc66..8b00feb9377 100644 --- a/libcxx/test/support/test_allocator.h +++ b/libcxx/test/support/test_allocator.h @@ -291,7 +291,10 @@ public: template<typename U, typename... Args> void destroy(U* p) - { p->~U(); } + { + p->~U(); + ((void)p); // Prevent MSVC's spurious unused warning + } }; template<typename T, typename U> |