summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-05-03 18:58:13 (GMT)
committerBrad King <brad.king@kitware.com>2005-05-03 18:58:13 (GMT)
commitbac564356b52b6ef1782615ad704d07bd7b8edd6 (patch)
tree5f707f502e4b8e3a522afb8c95d491ca420b7ba3
parentc7a75e92c992c9750f677177f550a32da6725ff8 (diff)
downloadCMake-bac564356b52b6ef1782615ad704d07bd7b8edd6.zip
CMake-bac564356b52b6ef1782615ad704d07bd7b8edd6.tar.gz
CMake-bac564356b52b6ef1782615ad704d07bd7b8edd6.tar.bz2
COMP: Added pragma directives for SGI compilers to avoid useless warnings.
-rw-r--r--Source/CTest/cmCTestUpdateHandler.h8
-rw-r--r--Source/cmGeneratedFileStream.h8
-rw-r--r--Source/cmLocalUnixMakefileGenerator2.h8
-rw-r--r--Source/cmStandardIncludes.h8
-rw-r--r--Source/cmSystemTools.cxx3
-rw-r--r--Source/kwsys/CommandLineArguments.cxx4
-rw-r--r--Source/kwsys/SystemTools.cxx3
-rw-r--r--Source/kwsys/testhash.cxx4
8 files changed, 46 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.h b/Source/CTest/cmCTestUpdateHandler.h
index 3f41858..019ee57 100644
--- a/Source/CTest/cmCTestUpdateHandler.h
+++ b/Source/CTest/cmCTestUpdateHandler.h
@@ -22,6 +22,10 @@
#include "cmCTestGenericHandler.h"
#include "cmListFileCache.h"
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma set woff 1375 /* base class destructor not virtual */
+#endif
+
/** \class cmCTestUpdateHandler
* \brief A class that handles ctest -S invocations
*
@@ -54,4 +58,8 @@ private:
int DetermineType(const char* cmd, const char* type);
};
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma reset woff 1375 /* base class destructor not virtual */
+#endif
+
#endif
diff --git a/Source/cmGeneratedFileStream.h b/Source/cmGeneratedFileStream.h
index 90ea51e..6706164 100644
--- a/Source/cmGeneratedFileStream.h
+++ b/Source/cmGeneratedFileStream.h
@@ -19,6 +19,10 @@
#include "cmStandardIncludes.h"
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma set woff 1375 /* base class destructor not virtual */
+#endif
+
// This is the first base class of cmGeneratedFileStream. It will be
// created before and destroyed after the ofstream portion and can
// therefore be used to manage the temporary file.
@@ -128,4 +132,8 @@ public:
void SetCompression(bool compression);
};
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma reset woff 1375 /* base class destructor not virtual */
+#endif
+
#endif
diff --git a/Source/cmLocalUnixMakefileGenerator2.h b/Source/cmLocalUnixMakefileGenerator2.h
index 65f03b0..61ea950 100644
--- a/Source/cmLocalUnixMakefileGenerator2.h
+++ b/Source/cmLocalUnixMakefileGenerator2.h
@@ -19,6 +19,10 @@
#include "cmLocalGenerator.h"
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma set woff 1375 /* base class destructor not virtual */
+#endif
+
class cmCustomCommand;
class cmDependInformation;
class cmDepends;
@@ -278,4 +282,8 @@ private:
std::set<cmStdString> m_ObjectFiles;
};
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma reset woff 1375 /* base class destructor not virtual */
+#endif
+
#endif
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index f218455..52eff2a 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -181,6 +181,10 @@ inline bool operator==(std::string const& a, const char* b)
{ return (a==std::string(b)); }
# endif // end CM_SGI_CC_720
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma set woff 1375 /* base class destructor not virtual */
+#endif
+
// use this class to shrink the size of symbols in .o files
// std::string is really basic_string<....lots of stuff....>
// when combined with a map or set, the symbols can be > 2000 chars!
@@ -306,4 +310,8 @@ public:
typedef Superclass::const_iterator const_iterator;
};
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma reset woff 1375 /* base class destructor not virtual */
+#endif
+
#endif
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 5f44543..0cde6c8 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -45,6 +45,9 @@
#include <sys/stat.h>
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma set woff 1375 /* base class destructor not virtual */
+#endif
bool cmSystemTools::s_RunCommandHideConsole = false;
bool cmSystemTools::s_DisableRunCommandOutput = false;
diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx
index e6185f5..e0d0edc 100644
--- a/Source/kwsys/CommandLineArguments.cxx
+++ b/Source/kwsys/CommandLineArguments.cxx
@@ -40,6 +40,10 @@
# pragma warning (disable: 4786)
#endif
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma set woff 1375 /* base class destructor not virtual */
+#endif
+
namespace KWSYS_NAMESPACE
{
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 7678601..5d4825b 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -33,6 +33,9 @@
# pragma warning (disable: 4786)
#endif
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma set woff 1375 /* base class destructor not virtual */
+#endif
#include <ctype.h>
#include <errno.h>
diff --git a/Source/kwsys/testhash.cxx b/Source/kwsys/testhash.cxx
index dc3c660..b8cdab1 100644
--- a/Source/kwsys/testhash.cxx
+++ b/Source/kwsys/testhash.cxx
@@ -29,6 +29,10 @@
# pragma warning (disable:4786)
#endif
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma set woff 1468 /* inline function cannot be explicitly instantiated */
+#endif
+
template class kwsys::hash_map<const char*, int>;
template class kwsys::hash_set<int>;