X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2Ftest%2Fsmart_ptr.cpp;h=0d3efc9ef952b6754248081c615d466283444450;hb=c06ce2ffcc269d66d5fa1907456498d861e62b51;hp=287ada5ee4bf43578e191631e928493bc6bd36a0;hpb=b3016b249333ac0ab0008d8c6c4d9029b2ff30c9;p=synfig.git diff --git a/ETL/trunk/test/smart_ptr.cpp b/ETL/trunk/test/smart_ptr.cpp index 287ada5..0d3efc9 100644 --- a/ETL/trunk/test/smart_ptr.cpp +++ b/ETL/trunk/test/smart_ptr.cpp @@ -1,7 +1,7 @@ /*! ======================================================================== ** Extended Template and Library Test Suite ** Smart Pointer Template Class Test -** $Id: smart_ptr.cpp,v 1.1.1.1 2005/01/04 01:31:48 darco Exp $ +** $Id$ ** ** Copyright (c) 2002 Robert B. Quattlebaum Jr. ** @@ -86,8 +86,8 @@ typedef list< other_obj_smart_ptr > other_obj_list; int smart_ptr_basic_test(void) { - printf("smart_ptr: Size of a smart_ptr: %d\n",sizeof(obj_smart_ptr)); - printf("smart_ptr: Size of a reference_counter: %d\n",sizeof(etl::reference_counter)); + printf("smart_ptr: Size of a smart_ptr: %u\n",(unsigned int)sizeof(obj_smart_ptr)); + printf("smart_ptr: Size of a reference_counter: %u\n",(unsigned int)sizeof(etl::reference_counter)); printf("smart_ptr: Basic test: "); @@ -247,7 +247,7 @@ int smart_ptr_inheritance_test(void) return 0; } -void test_func(etl::smart_ptr smart_ptr) +void test_func(etl::smart_ptr smart_ptr __attribute__ ((unused))) { } @@ -314,6 +314,6 @@ int main() error+=smart_ptr_general_use_test(); error+=smart_ptr_inheritance_test(); error+=loose_smart_ptr_test(); - + return error; }