From: abn Date: Mon, 24 Feb 2014 09:04:45 +0000 (+0100) Subject: Disabling FPE handling by default (similar to what has been done in GUI). X-Git-Tag: V7_3_1rc1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fabn%2Fno_fpe;p=modules%2Fgeom.git Disabling FPE handling by default (similar to what has been done in GUI). ParaView 4.1 needs +inf/-inf values to work properly. FPE handling can be reactivated by setting env variable ENABLE_FPE to true. --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index ff48a03e9..e844dbcab 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -110,11 +110,10 @@ GEOM_Gen_i::GEOM_Gen_i(CORBA::ORB_ptr orb, //work around PAL12004, PAL12628 //OSD::SetSignal( true ); bool raiseFPE; -#ifdef _DEBUG_ +#if defined(_DEBUG_) | defined(_DEBUG) //the Last for WIN32 default settings + char* envEnableFPE = getenv("ENABLE_FPE"); + if (envEnableFPE && atoi(envEnableFPE)) raiseFPE = true; - char* envDisableFPE = getenv("DISABLE_FPE"); - if (envDisableFPE && atoi(envDisableFPE)) - raiseFPE = false; #else raiseFPE = false; #endif