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};