- Fixed build failures with gcc 4.3 pre-release

(http://bugs.debian.org/413432)


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@823 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
lfittl 2007-05-08 10:48:40 +00:00
parent 2fdafe3884
commit 214635bfc1
13 changed files with 41 additions and 39 deletions

View file

@ -48,12 +48,9 @@ unsigned int MimicCOM::s_destructions = 0;
// ----------------------------------------------------------------------------
/// Used to check if SmartPtr can be used with a forward-reference.
/// GCC gives out warnings because of it, you can ignore them.
class Thingy;
#ifdef __GNUC__
#warning The warnings are by design: Check if SmartPtr can be used with a forward-reference.
#endif
typedef Loki::SmartPtr< Thingy, RefCounted, DisallowConversion,
AssertCheck, DefaultSPStorage, PropagateConst >
Thingy_DefaultStorage_ptr;
@ -1001,10 +998,10 @@ void DoForwardReferenceTest( void )
}
int main( unsigned int argc, const char * argv[] )
int main( int argc, const char * argv[] )
{
bool doThreadTest = false;
for ( unsigned int ii = 1; ii < argc; ++ii )
for ( int ii = 1; ii < argc; ++ii )
{
if ( ::strcmp( argv[ii], "-t" ) == 0 )
doThreadTest = true;