From 3d117343662c89e02ac394f3554a9a05ffecdea0 Mon Sep 17 00:00:00 2001 From: schmidt Date: Sun, 1 Aug 1999 21:13:14 +0000 Subject: ChangeLogTag:Sun Aug 1 15:58:39 1999 Douglas C. Schmidt --- examples/Shared_Malloc/test_position_independent_malloc.cpp | 5 +++-- examples/Shared_Malloc/test_position_independent_malloc.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/Shared_Malloc') diff --git a/examples/Shared_Malloc/test_position_independent_malloc.cpp b/examples/Shared_Malloc/test_position_independent_malloc.cpp index d291ee15afe..7ea178b6488 100644 --- a/examples/Shared_Malloc/test_position_independent_malloc.cpp +++ b/examples/Shared_Malloc/test_position_independent_malloc.cpp @@ -82,6 +82,9 @@ initialize (MALLOC *allocator) long longCont1 = *lt->bpl_; long longCont3 = lt->bpl_[3]; + ACE_UNUSED_ARG (longCont1); + ACE_UNUSED_ARG (longCont3); + // Test in local memory using long (array/pointer) ACE_NEW_RETURN (ptr, long[5], @@ -177,10 +180,8 @@ main (int argc, char *argv[]) template class ACE_Based_Pointer; template class ACE_Based_Pointer_Basic; template class ACE_Based_Pointer_Basic; -template class ACE_Based_Pointer; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_Based_Pointer #pragma instantiate ACE_Based_Pointer_Basic #pragma instantiate ACE_Based_Pointer_Basic -#pragma instantiate ACE_Based_Pointer #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Shared_Malloc/test_position_independent_malloc.h b/examples/Shared_Malloc/test_position_independent_malloc.h index cd89b6ef64d..54ca157bad2 100644 --- a/examples/Shared_Malloc/test_position_independent_malloc.h +++ b/examples/Shared_Malloc/test_position_independent_malloc.h @@ -18,7 +18,7 @@ struct Dummy_Data // Some more dummy data. struct Long_Test { - ACE_Based_Pointer bpl_; + ACE_Based_Pointer_Basic bpl_; long array_[10]; }; -- cgit v1.2.1