0024574: ICC compiler warnings on Windows
authorabv <abv@opencascade.com>
Thu, 19 Oct 2017 14:12:05 +0000 (17:12 +0300)
committerbugmaster <bugmaster@opencascade.com>
Mon, 23 Oct 2017 13:54:48 +0000 (16:54 +0300)
commitcf0786daf155ce0b2d4a96a767a74dbe5062c53f
tree858a2d710a983cada31445580c2b5a2ce4222d65
parentf6c2b39aac48ab1f07ec087df23c6f362f0f9188
0024574: ICC compiler warnings on Windows

NCollection_UtfString and NCollection_UtfIterator classes are refactored to use methods overloading instead of switches to dispatch implementation depending on character (Unicode code unit) size.

ICC-specific preprocessor directives are added to avoid warnings.
Unused local functions and variables, class methods, unreachable statements, and extra throw() declarations reported by ICC are removed.
Usage of "expl" for name of local variable is avoided as it conflicts with standard C function "expl" defined in math.h as preprocessor macro.

Non-standard (MS-specific) argument envp is removed in definition of main() function on Windows.
Functions _main_ and _WinMain_ are renamed to Draw_Main and Draw_WinMain, respectively, to avoid using names reserved in C++.

Doxygen warning is fixed in XDE User's Guide.
22 files changed:
dox/user_guides/xde/xde.md
src/BRepBuilderAPI/BRepBuilderAPI_Copy.cxx
src/BRepTest/BRepTest_Fillet2DCommands.cxx
src/DNaming/DNaming.cxx
src/Draft/Draft_Modification_1.cxx
src/Draw/Draw_Main.cxx
src/Draw/Draw_Main.hxx
src/Draw/MainWindow.cxx
src/GeomAdaptor/GeomAdaptor_Curve.cxx
src/Image/Image_Diff.cxx
src/NCollection/NCollection_StdAllocator.hxx
src/NCollection/NCollection_UtfIterator.hxx
src/NCollection/NCollection_UtfIterator.lxx
src/NCollection/NCollection_UtfString.hxx
src/NCollection/NCollection_UtfString.lxx
src/OSD/OSD_Host.cxx
src/QABugs/QABugs_11.cxx
src/QANCollection/QANCollection_Handle.cxx
src/ShapeExtend/ShapeExtend_Explorer.cxx
src/Standard/Standard_Atomic.hxx
src/TopOpeBRepBuild/TopOpeBRepBuild_VertexInfo.cxx
src/XSControl/XSControl_Utils.cxx