- 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:
parent
2fdafe3884
commit
214635bfc1
13 changed files with 41 additions and 39 deletions
|
@ -72,7 +72,7 @@ using namespace Loki;
|
|||
|
||||
class AbstractProduct{
|
||||
public:
|
||||
virtual ~AbstractProduct(){};
|
||||
virtual ~AbstractProduct(){}
|
||||
};
|
||||
|
||||
class Product : public AbstractProduct
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
LogClass()
|
||||
{
|
||||
print("LogClass::LogClass()");
|
||||
};
|
||||
}
|
||||
~LogClass()
|
||||
{
|
||||
print("LogClass::~LogClass()");
|
||||
|
|
|
@ -119,7 +119,7 @@ public:
|
|||
|
||||
class Creator : public AbstractCreator{
|
||||
public:
|
||||
Creator(){};
|
||||
Creator(){}
|
||||
AbstractProduct* create()
|
||||
{
|
||||
cout << "Creator::create()" << endl;
|
||||
|
@ -139,7 +139,7 @@ public:
|
|||
template< class T>
|
||||
class CreatorT{
|
||||
public:
|
||||
CreatorT(){};
|
||||
CreatorT(){}
|
||||
T* create()
|
||||
{
|
||||
cout << "CreatorT<T>::create()" << endl;
|
||||
|
|
|
@ -33,7 +33,7 @@ int loop = 5;
|
|||
|
||||
struct A
|
||||
{
|
||||
A(){};
|
||||
A(){}
|
||||
|
||||
#define DO for(int i=0; i<10000000; i++) g++;
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ public:
|
|||
Example(const char * s)
|
||||
{
|
||||
msg = s;
|
||||
};
|
||||
}
|
||||
virtual ~Example()
|
||||
{
|
||||
echo(msg);
|
||||
|
|
|
@ -248,7 +248,7 @@ class B1_NoDestroy : public Master1_NoDestroy
|
|||
{
|
||||
public:
|
||||
B1_NoDestroy(){std::cout<<"new B1_NoDestroy. B1_NoDestroy must not be deleted\n";}
|
||||
~B1_NoDestroy(){std::cout<<"delete B1_NoDestroy\n";};
|
||||
~B1_NoDestroy(){std::cout<<"delete B1_NoDestroy\n";}
|
||||
};
|
||||
|
||||
class B1_PhoenixSingleton : public Master1_PhoenixSingleton
|
||||
|
@ -331,7 +331,7 @@ class B2_NoDestroy : public Master2_NoDestroy
|
|||
{
|
||||
public:
|
||||
B2_NoDestroy(){std::cout<<"new B2_NoDestroy. B2_NoDestroy must not be deleted\n";}
|
||||
~B2_NoDestroy(){std::cout<<"delete B2_NoDestroy\n";};
|
||||
~B2_NoDestroy(){std::cout<<"delete B2_NoDestroy\n";}
|
||||
};
|
||||
|
||||
class B2_PhoenixSingleton : public Master2_PhoenixSingleton
|
||||
|
|
|
@ -27,7 +27,7 @@ public:
|
|||
Timer()
|
||||
{
|
||||
t100 = 0;
|
||||
};
|
||||
}
|
||||
|
||||
void start()
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue