COMP: Attempt to fix warnings on SGI

This commit is contained in:
Andy Cedilnik 2004-10-26 08:45:27 -04:00
parent 182f6f969c
commit 2bad658304
1 changed files with 19 additions and 13 deletions

View File

@ -36,8 +36,18 @@ typedef unsigned short mode_t;
namespace @KWSYS_NAMESPACE@ namespace @KWSYS_NAMESPACE@
{ {
class SystemToolsManager;
class SystemToolsTranslationMap; class SystemToolsTranslationMap;
class @KWSYS_NAMESPACE@_EXPORT SystemToolsManager
{
public:
SystemToolsManager();
~SystemToolsManager();
};
// This instance will show up in any translation unit that uses
// SystemTools. It will make sure SystemTools is initialized
// before it is used and is the last static object destroyed.
static SystemToolsManager SystemToolsManagerInstance;
/** \class SystemTools /** \class SystemTools
* \brief A collection of useful platform-independent system functions. * \brief A collection of useful platform-independent system functions.
@ -355,6 +365,14 @@ private:
*/ */
static void ClassFinalize(); static void ClassFinalize();
/**
* This method prevents warning on SGI
*/
SystemToolsManager* GetSystemToolsManager()
{
return &SystemToolsManagerInstance;
}
/** /**
* Path translation table from dir to refdir * Path translation table from dir to refdir
* Each time 'dir' will be found it will be replace by 'refdir' * Each time 'dir' will be found it will be replace by 'refdir'
@ -364,18 +382,6 @@ private:
friend class SystemToolsManager; friend class SystemToolsManager;
}; };
class @KWSYS_NAMESPACE@_EXPORT SystemToolsManager
{
public:
SystemToolsManager();
~SystemToolsManager();
};
// This instance will show up in any translation unit that uses
// SystemTools. It will make sure SystemTools is initialized
// before it is used and is the last static object destroyed.
static SystemToolsManager SystemToolsManagerInstance;
} // namespace @KWSYS_NAMESPACE@ } // namespace @KWSYS_NAMESPACE@
/* Undefine temporary macros. */ /* Undefine temporary macros. */