1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024168: Eliminate CLang compiler warning -Wunused-variable

Got rid of warning -Wunused-variable

In FSD_File, use template specialization instead of comparison of sizeof() to specific value in if statement, thus eliminating warning "constant value in conditional expression"
This commit is contained in:
omy
2013-09-11 16:52:16 +04:00
committed by abv
parent 74d80fb976
commit 295cb05393
16 changed files with 68 additions and 67 deletions

View File

@@ -315,9 +315,6 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve,
done = Standard_True;
Standard_Integer NbUOnS = TheSurfaceTool::NbUIntervals(surface,GeomAbs_C2);
Standard_Integer NbVOnS = TheSurfaceTool::NbVIntervals(surface,GeomAbs_C2);
#ifdef ICS_DEB
Standard_Integer NbOnC = TheCurveTool::NbIntervals(curve,GeomAbs_C2);
#endif
Standard_Real U0,U1,V0,V1;
if(NbUOnS > 1) {