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

0032460: Coding Rules - eliminate CLang warning -Wunused-but-set-variable

Code has been adjusted to suppress -Wunused-but-set-variable warnings.

DRAWEXE.wasm, compiler flags have been moved to linker flags
to eliminiate -Wunused-command-line-argument warnings.
This commit is contained in:
kgv
2021-06-24 23:07:37 +03:00
parent 503374ad84
commit 73dee81133
15 changed files with 123 additions and 58 deletions

View File

@@ -1975,7 +1975,8 @@ static void ToSmooth( const Handle(IntSurf_LineOn2S)& Line,
Standard_Integer startp = (IsFirst) ? 2 : (Line->NbPoints() - NbTestPnts - 2);
Standard_Integer ip = 0;
Standard_Real Uc = 0., Vc = 0., Un = 0., Vn = 0., DDU = 0., DDV = 0.;
Standard_Real Uc = 0., Vc = 0., Un = 0., Vn = 0., DDU = 0.;
//Standard_Real DDV = 0.;
for(ip = startp; ip <= NbTestPnts; ip++) {
if(IsReversed) {
@@ -1987,7 +1988,7 @@ static void ToSmooth( const Handle(IntSurf_LineOn2S)& Line,
Line->Value(ip+1).ParametersOnS1(Un,Vn);
}
DDU += fabs(fabs(Uc)-fabs(Un));
DDV += fabs(fabs(Vc)-fabs(Vn));
//DDV += fabs(fabs(Vc)-fabs(Vn));
if(ip > startp) {
Standard_Real DP = Line->Value(ip).Value().Distance(Line->Value(ip-1).Value());
@@ -1996,7 +1997,7 @@ static void ToSmooth( const Handle(IntSurf_LineOn2S)& Line,
}
DDU /= (Standard_Real) NbTestPnts + 1;
DDV /= (Standard_Real) NbTestPnts + 1;
//DDV /= (Standard_Real) NbTestPnts + 1;
D3D /= (Standard_Real) NbTestPnts + 1;