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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user