From: <ric...@us...> - 2011-10-03 04:52:58
|
Revision: 1130 http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1130&view=rev Author: rich_sposato Date: 2011-10-03 04:52:52 +0000 (Mon, 03 Oct 2011) Log Message: ----------- Added void lines to remove compiler warnings. Modified Paths: -------------- trunk/test/SmartPtr/strong.cpp Modified: trunk/test/SmartPtr/strong.cpp =================================================================== --- trunk/test/SmartPtr/strong.cpp 2011-10-03 04:39:17 UTC (rev 1129) +++ trunk/test/SmartPtr/strong.cpp 2011-10-03 04:52:52 UTC (rev 1130) @@ -2113,10 +2113,12 @@ try { Tiger & p4 = sp2[ 4 ]; + (void)p4; assert( false ); } catch ( const ::std::out_of_range & ex ) { + (void)ex; assert( true ); } @@ -2124,10 +2126,12 @@ try { Tiger & p8 = sp1[ 8 ]; + (void)p8; assert( false ); } catch ( const ::std::out_of_range & ex ) { + (void)ex; assert( true ); } @@ -2156,20 +2160,24 @@ try { Tiger & p4 = sp1[ 4 ]; + (void)p4; assert( false ); } catch ( const ::std::out_of_range & ex ) { + (void)ex; assert( true ); } try { Tiger & p8 = sp2[ 8 ]; + (void)p8; assert( false ); } catch ( const ::std::out_of_range & ex ) { + (void)ex; assert( true ); } @@ -2179,10 +2187,12 @@ try { const Tiger & p4 = sp3[ 4 ]; + (void)p4; assert( false ); } catch ( const ::std::out_of_range & ex ) { + (void)ex; assert( true ); } @@ -2192,10 +2202,12 @@ try { const Tiger & p8 = sp5[ 8 ]; + (void)p8; assert( false ); } catch ( const ::std::out_of_range & ex ) { + (void)ex; assert( true ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |