summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-24 13:57:06 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-24 13:57:06 (GMT)
commita03f801f7f8d6d244623ce373ea583b95443bb9a (patch)
tree0df64511cb7f2e265e85727c1ef2f2eba695263e /Source
parent24106f8600216e55ba0442fe496efc06a8c1d0b8 (diff)
downloadCMake-a03f801f7f8d6d244623ce373ea583b95443bb9a.zip
CMake-a03f801f7f8d6d244623ce373ea583b95443bb9a.tar.gz
CMake-a03f801f7f8d6d244623ce373ea583b95443bb9a.tar.bz2
Suppress Intel float-equality test warnings
We suppress Intel warning 1572 because the cases where we do equality tests are valid. Since this project does not do numerical computations we need not worry about real instances against which this warning protects.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmStandardIncludes.h1
-rw-r--r--Source/kwsys/Configure.h.in3
2 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 38347a92..5db0200 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -37,6 +37,7 @@
#ifdef __ICL
#pragma warning ( disable : 985 )
+#pragma warning ( disable : 1572 ) /* floating-point equality test */
#endif
#include <stdarg.h> // Work-around for SGI MIPSpro 7.4.2m header bug
diff --git a/Source/kwsys/Configure.h.in b/Source/kwsys/Configure.h.in
index d3b6906..b57b698 100644
--- a/Source/kwsys/Configure.h.in
+++ b/Source/kwsys/Configure.h.in
@@ -25,6 +25,9 @@
# if defined(__BORLANDC__)
# pragma warn -8027 /* function not inlined. */
# endif
+# if defined(__INTEL_COMPILER)
+# pragma warning (disable: 1572) /* floating-point equality test */
+# endif
#endif
/* Whether kwsys namespace is "kwsys". */