supress sun pro warnings

This commit is contained in:
Jeff Hill
2004-02-04 02:09:11 +00:00
parent fbf90dd641
commit 9fb90cfcab
+15
View File
@@ -24,6 +24,7 @@
#include "epicsMutex.h"
#include "epicsGuard.h"
#include "epicsThread.h"
#include "epicsAssert.h"
#include "compilerDependencies.h"
// This class exists for the purpose of avoiding file scope
@@ -103,6 +104,20 @@ inline epicsSingleton<TYPE>::~epicsSingleton ()
// sorts of problems then clean up is left to other classes.
}
// SUN PRO generates warnings unless it sees an implementation
#ifdef _SUNPRO_C
template < class TYPE >
inline epicsSingleton<TYPE>::epicsSingleton ( const epicsSingleton & )
{
assert ( 0 );
}
template < class TYPE >
inline epicsSingleton & epicsSingleton<TYPE>::operator = ( const epicsSingleton & )
{
assert ( 0 );
}
#endif
epicsShareFunc epicsMutex & epicsSingletonPrivateMutex ();
// borland 5.5 is unable to build this function optimized if it is inline