mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0023934: Compiler warnings in MS VC++ 10
Elimination of compiler warnings - ExprIntrp: generated file ExprIntrp.tab.c and related WOK scripts removed from the sources - ExprIntrp, StepFile: added missing declarations and casts; warnings caused by Flex and Bison code suppressed for MSVC compuler by #pragma - OSD: dummy #includes added to files containing no code for Windows, to avoid warning on empty file - PLib: piece of code contained in PLib_ChangeDim.gxx included explicitly in cxx and cleaned - Other places: some casts added to avoid warnings
This commit is contained in:
@@ -30,14 +30,6 @@ Extrema_GLocateExtCC::Extrema_GLocateExtCC (const Curve1& C1,
|
||||
const Standard_Real U0,
|
||||
const Standard_Real V0)
|
||||
{
|
||||
|
||||
#ifdef DEB
|
||||
GeomAbs_CurveType type1 = Tool1::GetType(C1);
|
||||
GeomAbs_CurveType type2 = Tool2::GetType(C2);
|
||||
#else
|
||||
Tool1::GetType(C1);
|
||||
Tool2::GetType(C2);
|
||||
#endif
|
||||
Standard_Real TolU = C1.Resolution(Precision::Confusion());
|
||||
Standard_Real TolV = C2.Resolution(Precision::Confusion());
|
||||
Extrema_POnCurv P1, P2;
|
||||
|
@@ -37,13 +37,6 @@ Extrema_GLocateExtCC2d::Extrema_GLocateExtCC2d (const Curve1& C1,
|
||||
const Standard_Real U0,
|
||||
const Standard_Real V0)
|
||||
{
|
||||
#ifdef DEB
|
||||
GeomAbs_CurveType type1 = Tool1::GetType(C1);
|
||||
GeomAbs_CurveType type2 = Tool2::GetType(C2);
|
||||
#else
|
||||
Tool1::GetType(C1);
|
||||
Tool2::GetType(C2);
|
||||
#endif
|
||||
Standard_Real TolU = Tool1::Resolution(C1, Precision::Confusion());
|
||||
Standard_Real TolV = Tool2::Resolution(C2, Precision::Confusion());
|
||||
Extrema_POnCurv2d P1, P2;
|
||||
|
@@ -113,11 +113,6 @@ void Extrema_GLocateExtPC::Perform(const ThePoint& P,
|
||||
const Standard_Real U0)
|
||||
{
|
||||
Standard_Integer i, i1, i2, inter;
|
||||
#ifdef DEB
|
||||
Standard_Real Tol = TheCurveTool::Resolution(*((TheCurve*)myC), Precision::Confusion());
|
||||
#else
|
||||
TheCurveTool::Resolution(*((TheCurve*)myC), Precision::Confusion());
|
||||
#endif
|
||||
Standard_Real Par, valU, valU2 = RealLast(),
|
||||
local_u0 ;
|
||||
Standard_Real myintuinf=0, myintusup=0;
|
||||
|
Reference in New Issue
Block a user