1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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:
abv
2013-09-18 09:13:42 +04:00
parent 498ce76bde
commit 105aae761e
39 changed files with 264 additions and 1600 deletions

View File

@@ -50,7 +50,7 @@ Standard_EXPORT TopTools_IndexedMapOfOrientedShape STATIC_PURGE_mapeds;
static void FUN_RaiseError()
{
#ifdef DEB
Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
// Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
FUN_REINIT();
// if (trc) cout <<"*********failure in CORRISO***********\n";
#endif
@@ -156,6 +156,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::Init(const TopoDS_Shape& S)
const TopoDS_Edge& E = TopoDS::Edge(ex.Current());
#ifdef DEB
Standard_Integer iE = STATIC_PURGE_mapeds.Add(E);
(void)iE; // avoid warning
#ifdef DRAW
if (trc) {TCollection_AsciiString aa = TCollection_AsciiString("e"); FUN_tool_draw(aa,E,iE);}
#endif
@@ -180,6 +181,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::Init(const TopoDS_Shape& S)
const TopoDS_Vertex& v = TopoDS::Vertex(exv.Current());
#ifdef DEB
Standard_Integer iE = STATIC_PURGE_mapeds.Add(E);
(void)iE; // avoid warning
#ifdef DRAW
if (trc) {TCollection_AsciiString bb = TCollection_AsciiString("v"); FUN_tool_draw(bb,v,iv);}
#endif