Disable divide by zero warnings on MSVC when generating NAN and INF.

Use those values rather than calculating them independently.
This commit is contained in:
Andrew Johnson
2009-08-25 18:19:49 +00:00
parent a4e5e540a9
commit f17ac39f29
3 changed files with 15 additions and 13 deletions
+10
View File
@@ -9,6 +9,11 @@
#define epicsExportSharedSymbols
#include <epicsMath.h>
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4723)
#endif
static float makeNAN ( void )
{
float a = 0, b = 0;
@@ -25,3 +30,8 @@ extern "C" {
epicsShareDef float epicsNAN = makeNAN();
epicsShareDef float epicsINF = makeINF();
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif