From: abv Date: Mon, 23 Jul 2018 18:58:47 +0000 (+0300) Subject: 0029981: Coding - Clang 6.0 warning [-Wenum-compare-switch] X-Git-Tag: OCCT_VC2017_73~45 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=321659b075f2233f65a4ee138d3ab563172d8469;p=occt-copy.git 0029981: Coding - Clang 6.0 warning [-Wenum-compare-switch] In implementation of DRAW command "mkplane", the case labels of the switch statement are corrected to use values of the enum matching the type of the switch argument. --- diff --git a/src/BRepTest/BRepTest_SurfaceCommands.cxx b/src/BRepTest/BRepTest_SurfaceCommands.cxx index 454e3c0c0d..3c55eaa633 100644 --- a/src/BRepTest/BRepTest_SurfaceCommands.cxx +++ b/src/BRepTest/BRepTest_SurfaceCommands.cxx @@ -201,16 +201,16 @@ static Standard_Integer mkplane(Draw_Interpretor& theDI, Standard_Integer n, con case BRepBuilderAPI_FaceDone: DBRep::Set(a[1],aMF.Face()); break; - case BRepLib_NoFace: + case BRepBuilderAPI_NoFace: theDI << "Error. mkplane has been finished with \"No Face\" status.\n"; break; - case BRepLib_NotPlanar: + case BRepBuilderAPI_NotPlanar: theDI << "Error. mkplane has been finished with \"Not Planar\" status.\n"; break; - case BRepLib_CurveProjectionFailed: + case BRepBuilderAPI_CurveProjectionFailed: theDI << "Error. mkplane has been finished with \"Fail in projection curve\" status.\n"; break; - case BRepLib_ParametersOutOfRange: + case BRepBuilderAPI_ParametersOutOfRange: theDI << "Error. mkplane has been finished with \"Parameters are out of range\" status.\n"; break; default: