Added void lines to remove compiler warnings.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1130 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2011-10-03 04:52:52 +00:00
parent abd64fced4
commit d66de77411

View file

@ -2113,10 +2113,12 @@ void DoStrongArrayTests( void )
try try
{ {
Tiger & p4 = sp2[ 4 ]; Tiger & p4 = sp2[ 4 ];
(void)p4;
assert( false ); assert( false );
} }
catch ( const ::std::out_of_range & ex ) catch ( const ::std::out_of_range & ex )
{ {
(void)ex;
assert( true ); assert( true );
} }
@ -2124,10 +2126,12 @@ void DoStrongArrayTests( void )
try try
{ {
Tiger & p8 = sp1[ 8 ]; Tiger & p8 = sp1[ 8 ];
(void)p8;
assert( false ); assert( false );
} }
catch ( const ::std::out_of_range & ex ) catch ( const ::std::out_of_range & ex )
{ {
(void)ex;
assert( true ); assert( true );
} }
@ -2156,20 +2160,24 @@ void DoStrongArrayTests( void )
try try
{ {
Tiger & p4 = sp1[ 4 ]; Tiger & p4 = sp1[ 4 ];
(void)p4;
assert( false ); assert( false );
} }
catch ( const ::std::out_of_range & ex ) catch ( const ::std::out_of_range & ex )
{ {
(void)ex;
assert( true ); assert( true );
} }
try try
{ {
Tiger & p8 = sp2[ 8 ]; Tiger & p8 = sp2[ 8 ];
(void)p8;
assert( false ); assert( false );
} }
catch ( const ::std::out_of_range & ex ) catch ( const ::std::out_of_range & ex )
{ {
(void)ex;
assert( true ); assert( true );
} }
@ -2179,10 +2187,12 @@ void DoStrongArrayTests( void )
try try
{ {
const Tiger & p4 = sp3[ 4 ]; const Tiger & p4 = sp3[ 4 ];
(void)p4;
assert( false ); assert( false );
} }
catch ( const ::std::out_of_range & ex ) catch ( const ::std::out_of_range & ex )
{ {
(void)ex;
assert( true ); assert( true );
} }
@ -2192,10 +2202,12 @@ void DoStrongArrayTests( void )
try try
{ {
const Tiger & p8 = sp5[ 8 ]; const Tiger & p8 = sp5[ 8 ];
(void)p8;
assert( false ); assert( false );
} }
catch ( const ::std::out_of_range & ex ) catch ( const ::std::out_of_range & ex )
{ {
(void)ex;
assert( true ); assert( true );
} }