From 7c968fd38de0e5df12ea4cc3fcd4d275cf09093f Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 22 Jul 2012 07:14:42 +0000 Subject: [PATCH] Unordered: Avoid an MSVC warning. [SVN r79651] --- test/objects/test.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/objects/test.hpp b/test/objects/test.hpp index 2a1dfbdf..ce9c698b 100644 --- a/test/objects/test.hpp +++ b/test/objects/test.hpp @@ -26,7 +26,9 @@ namespace test template class allocator2; object generate(object const*); implicitly_convertible generate(implicitly_convertible const*); - + + inline void ignore_variable(void const*) {} + class object : private counted_object { friend class hash; @@ -248,6 +250,9 @@ namespace test void destroy(T* p) { //detail::tracker.track_destroy((void*) p, sizeof(T), tag_); p->~T(); + + // Work around MSVC buggy unused parameter warning. + ignore_variable(&p); } bool operator==(allocator1 const& x) const