Browse Source

COMP: Added pragma directives for SGI compilers to avoid useless warnings.

Brad King 20 years ago
parent
commit
bac564356b

+ 8 - 0
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

+ 8 - 0
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

+ 8 - 0
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

+ 8 - 0
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

+ 3 - 0
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;

+ 4 - 0
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
 {
 

+ 3 - 0
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>

+ 4 - 0
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>;