summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-05-12 13:37:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2010-05-12 13:37:42 (GMT)
commit0b5288849f5c8a12e31ae38c1f25b69296bc87e9 (patch)
treeb09ced338f542dcb3b937e5e2dfd44e5215efe2a /Source
parent38cabcd9ff34dae427ef86b0a24ca4e56cffd746 (diff)
downloadCMake-0b5288849f5c8a12e31ae38c1f25b69296bc87e9.zip
CMake-0b5288849f5c8a12e31ae38c1f25b69296bc87e9.tar.gz
CMake-0b5288849f5c8a12e31ae38c1f25b69296bc87e9.tar.bz2
Silence warnings on sgi compiler.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/Configure.h.in4
-rw-r--r--Source/kwsys/hashtable.hxx.in4
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/Configure.h.in b/Source/kwsys/Configure.h.in
index 97b2c5d..15986cf 100644
--- a/Source/kwsys/Configure.h.in
+++ b/Source/kwsys/Configure.h.in
@@ -28,6 +28,10 @@
# if defined(__INTEL_COMPILER)
# pragma warning (disable: 1572) /* floating-point equality test */
# endif
+# if defined(__sgi) && !defined(__GNUC__)
+# pragma set woff 3970 /* pointer to int conversion */
+# pragma set woff 3968 /* 64 bit conversion */
+# endif
#endif
/* Whether kwsys namespace is "kwsys". */
diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in
index 2f337ba..db52fc8 100644
--- a/Source/kwsys/hashtable.hxx.in
+++ b/Source/kwsys/hashtable.hxx.in
@@ -38,6 +38,7 @@
# pragma warn -8027 /* 'for' not inlined. */
# pragma warn -8026 /* 'exception' not inlined. */
#endif
+
#ifndef @KWSYS_NAMESPACE@_hashtable_hxx
#define @KWSYS_NAMESPACE@_hashtable_hxx
@@ -57,6 +58,9 @@
# pragma warning (disable:4786)
# pragma warning (disable:4512) /* no assignment operator for class */
#endif
+#if defined(__sgi) && !defined(__GNUC__)
+# pragma set woff 3970 /* pointer to int conversion */ 3321 3968
+#endif
#if @KWSYS_NAMESPACE@_STL_HAS_ALLOCATOR_TEMPLATE
# define @KWSYS_NAMESPACE@_HASH_DEFAULT_ALLOCATOR(T) @KWSYS_NAMESPACE@_stl::allocator< T >