From 8895c8a44ed24ebcf5df3e191e0440db7fbc2032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 6 Jun 2014 08:49:53 +0200 Subject: [PATCH] Removed some unused typedef/variable warnings --- example/doc_shared_ptr.cpp | 4 +++- test/expand_bwd_test_template.hpp | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/example/doc_shared_ptr.cpp b/example/doc_shared_ptr.cpp index 4e452da..6956816 100644 --- a/example/doc_shared_ptr.cpp +++ b/example/doc_shared_ptr.cpp @@ -94,7 +94,9 @@ int main () assert(owner1->shared_ptr_.use_count() == 2); assert(owner2->shared_ptr_.use_count() == 2); assert(owner1->shared_ptr_.get() == owner2->shared_ptr_.get()); - + //<- + (void)owner2; + //-> //The mapped file is unmapped here. Objects have been flushed to disk } { diff --git a/test/expand_bwd_test_template.hpp b/test/expand_bwd_test_template.hpp index 68b7de6..3261898 100644 --- a/test/expand_bwd_test_template.hpp +++ b/test/expand_bwd_test_template.hpp @@ -181,7 +181,6 @@ bool test_assign_with_expand_bwd() { typedef typename VectorWithExpandBwdAllocator::value_type value_type; typedef typename boost::remove_volatile::type non_volatile_value_type; - typedef std::vector Vect; const int MemorySize = 200; const int Offset[] = { 50, 50, 50};