From db09218c28d2a90c175d07df69c9f33189153aa7 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Tue, 3 May 2005 14:58:13 -0400
Subject: [PATCH] COMP: Added pragma directives for SGI compilers to avoid
 useless warnings.

---
 CommandLineArguments.cxx | 4 ++++
 SystemTools.cxx          | 3 +++
 testhash.cxx             | 4 ++++
 3 files changed, 11 insertions(+)

diff --git a/CommandLineArguments.cxx b/CommandLineArguments.cxx
index 06fb377b..fc99ac5f 100644
--- a/CommandLineArguments.cxx
+++ b/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/SystemTools.cxx b/SystemTools.cxx
index 44ff8cd5..2f0aac9f 100644
--- a/SystemTools.cxx
+++ b/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/testhash.cxx b/testhash.cxx
index 66651503..8c303664 100644
--- a/testhash.cxx
+++ b/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>;
 
-- 
GitLab