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

0028956: Coding Rules - eliminate several trivial compiler warnings

Eliminated GCC warning -Wsign-compare introduced by patch for #0028786.
Eliminated (false) GCC warning -Wuninitialized introduced by patch for #0027117.

Suppressed GCC warning "-Wunused-but-set-variable" with OCCT_DEBUG defined
This commit is contained in:
kgv
2017-07-28 09:42:11 +03:00
committed by bugmaster
parent 04db3d1cc9
commit 8dbf046236
8 changed files with 30 additions and 41 deletions

View File

@@ -942,12 +942,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Lin& Line,
Standard_Integer nbp = intlintorus.NbPoints();
Standard_Real fi,theta,w;
for(Standard_Integer i = 1; i<= nbp; i++) {
#ifndef OCCT_DEBUG
gp_Pnt P;
P = intlintorus.Value(i);
#else
gp_Pnt P(intlintorus.Value(i));
#endif
const gp_Pnt aDebPnt(intlintorus.Value(i));
(void )aDebPnt;
w = intlintorus.ParamOnLine(i);
intlintorus.ParamOnTorus(i,fi,theta);
AppendPoint(curve,w,surface,fi,theta);