diff options
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> |