From a03f801f7f8d6d244623ce373ea583b95443bb9a Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 24 Nov 2009 08:57:06 -0500 Subject: 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. --- Source/cmStandardIncludes.h | 1 + Source/kwsys/Configure.h.in | 3 +++ 2 files changed, 4 insertions(+) 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 // 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". */ -- cgit v0.12