Browse Source

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.
Brad King 16 years ago
parent
commit
a03f801f7f
2 changed files with 4 additions and 0 deletions
  1. 1 0
      Source/cmStandardIncludes.h
  2. 3 0
      Source/kwsys/Configure.h.in

+ 1 - 0
Source/cmStandardIncludes.h

@@ -37,6 +37,7 @@
 
 
 #ifdef __ICL
 #ifdef __ICL
 #pragma warning ( disable : 985 )
 #pragma warning ( disable : 985 )
+#pragma warning ( disable : 1572 ) /* floating-point equality test */
 #endif
 #endif
 
 
 #include <stdarg.h> // Work-around for SGI MIPSpro 7.4.2m header bug
 #include <stdarg.h> // Work-around for SGI MIPSpro 7.4.2m header bug

+ 3 - 0
Source/kwsys/Configure.h.in

@@ -25,6 +25,9 @@
 # if defined(__BORLANDC__)
 # if defined(__BORLANDC__)
 #  pragma warn -8027 /* function not inlined.  */
 #  pragma warn -8027 /* function not inlined.  */
 # endif
 # endif
+# if defined(__INTEL_COMPILER)
+#  pragma warning (disable: 1572) /* floating-point equality test */
+# endif
 #endif
 #endif
 
 
 /* Whether kwsys namespace is "kwsys".  */
 /* Whether kwsys namespace is "kwsys".  */