remove gcc warnings
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@647 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
e23c99bf65
commit
b1893764c6
1 changed files with 18 additions and 15 deletions
|
@ -254,9 +254,9 @@ typedef Loki::StrongPtr< const BaseClass, false, TwoRefCounts, DisallowConversio
|
||||||
void DoStrongRefCountTests( void )
|
void DoStrongRefCountTests( void )
|
||||||
{
|
{
|
||||||
|
|
||||||
BaseClass * pNull = NULL;
|
BaseClass * pNull = NULL; (void)pNull;
|
||||||
const unsigned int ctorCount = BaseClass::GetCtorCount();
|
const unsigned int ctorCount = BaseClass::GetCtorCount(); (void)ctorCount;
|
||||||
const unsigned int dtorCount = BaseClass::GetDtorCount();
|
const unsigned int dtorCount = BaseClass::GetDtorCount(); (void)dtorCount;
|
||||||
assert( BaseClass::GetCtorCount() == BaseClass::GetDtorCount() );
|
assert( BaseClass::GetCtorCount() == BaseClass::GetDtorCount() );
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -462,8 +462,8 @@ void DoStrongRefCountTests( void )
|
||||||
void DoStrongConstTests( void )
|
void DoStrongConstTests( void )
|
||||||
{
|
{
|
||||||
|
|
||||||
const unsigned int ctorCount = BaseClass::GetCtorCount();
|
const unsigned int ctorCount = BaseClass::GetCtorCount(); (void)ctorCount;
|
||||||
const unsigned int dtorCount = BaseClass::GetDtorCount();
|
const unsigned int dtorCount = BaseClass::GetDtorCount(); (void)dtorCount;
|
||||||
assert( BaseClass::GetCtorCount() == BaseClass::GetDtorCount() );
|
assert( BaseClass::GetCtorCount() == BaseClass::GetDtorCount() );
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -530,9 +530,9 @@ void DoStrongConstTests( void )
|
||||||
void DoStrongReleaseTests( void )
|
void DoStrongReleaseTests( void )
|
||||||
{
|
{
|
||||||
|
|
||||||
BaseClass * pNull = NULL;
|
BaseClass * pNull = NULL; (void)pNull;
|
||||||
const unsigned int ctorCount = BaseClass::GetCtorCount();
|
const unsigned int ctorCount = BaseClass::GetCtorCount(); (void)ctorCount;
|
||||||
const unsigned int dtorCount = BaseClass::GetDtorCount();
|
const unsigned int dtorCount = BaseClass::GetDtorCount(); (void)dtorCount;
|
||||||
assert( BaseClass::GetCtorCount() == BaseClass::GetDtorCount() );
|
assert( BaseClass::GetCtorCount() == BaseClass::GetDtorCount() );
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -656,9 +656,9 @@ void DoStrongReleaseTests( void )
|
||||||
void DoStrongRefLinkTests( void )
|
void DoStrongRefLinkTests( void )
|
||||||
{
|
{
|
||||||
|
|
||||||
BaseClass * pNull = NULL;
|
BaseClass * pNull = NULL; (void)pNull;
|
||||||
const unsigned int ctorCount = BaseClass::GetCtorCount();
|
const unsigned int ctorCount = BaseClass::GetCtorCount(); (void)ctorCount;
|
||||||
const unsigned int dtorCount = BaseClass::GetDtorCount();
|
const unsigned int dtorCount = BaseClass::GetDtorCount(); (void)dtorCount;
|
||||||
assert( BaseClass::GetCtorCount() == BaseClass::GetDtorCount() );
|
assert( BaseClass::GetCtorCount() == BaseClass::GetDtorCount() );
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -762,11 +762,11 @@ void DoStrongRefLinkTests( void )
|
||||||
void DoWeakCycleTests( void )
|
void DoWeakCycleTests( void )
|
||||||
{
|
{
|
||||||
|
|
||||||
const unsigned int ctorCountMoon = Moon::GetCtorCount();
|
const unsigned int ctorCountMoon = Moon::GetCtorCount(); (void)ctorCountMoon;
|
||||||
const unsigned int dtorCountMoon = Moon::GetDtorCount();
|
const unsigned int dtorCountMoon = Moon::GetDtorCount(); (void)dtorCountMoon;
|
||||||
assert( Moon::AllDestroyed() );
|
assert( Moon::AllDestroyed() );
|
||||||
const unsigned int ctorCountEarth = Earth::GetCtorCount();
|
const unsigned int ctorCountEarth = Earth::GetCtorCount(); (void)ctorCountEarth;
|
||||||
const unsigned int dtorCountEarth = Earth::GetDtorCount();
|
const unsigned int dtorCountEarth = Earth::GetDtorCount(); (void)dtorCountEarth;
|
||||||
assert( Earth::AllDestroyed() );
|
assert( Earth::AllDestroyed() );
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -935,6 +935,9 @@ void DoStrongForwardReferenceTest( void )
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.6 2006/05/17 16:23:39 syntheticpp
|
||||||
|
// remove gcc warnings
|
||||||
|
//
|
||||||
// Revision 1.5 2006/04/19 01:04:25 rich_sposato
|
// Revision 1.5 2006/04/19 01:04:25 rich_sposato
|
||||||
// Changed DeleteSingle and DeleteArray policy to not allow use of incomplete
|
// Changed DeleteSingle and DeleteArray policy to not allow use of incomplete
|
||||||
// types.
|
// types.
|
||||||
|
|
Loading…
Add table
Reference in a new issue