mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0023947: Eliminate trivial compiler warnings in MSVC++ with warning level 4
Fix first subset of warnings (about 100) - while(1) and similar constructs replaced by for(;;) - some uninitialized variables corrected Got rid of Warning C4189: local variable is initialised but not referenced Corrected mistakes after getting rid of C4189 compiler warning Corrected some mistakes that led to compiling errors Fixed test case because of improvement message - removed unnecessary TODO. Small fix: tabs have been replaced with whitespaces. Added TODO for Windows platform removed last TODO Corrected mistakes, returned some #ifdef DEB code, fixed test case . Restoring a few places which have been modified too much Small grammar fix Deleted unnecessary puts in bugs/end
This commit is contained in:
@@ -81,7 +81,7 @@ void gp_GTrsf::Power (const Standard_Integer N)
|
||||
gp_XYZ Temploc = loc;
|
||||
// Standard_Real Tempscale = scale;
|
||||
gp_Mat Tempmatrix (matrix);
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) {
|
||||
loc.Add (Temploc.Multiplied (matrix));
|
||||
matrix.Multiply (Tempmatrix);
|
||||
|
@@ -98,7 +98,7 @@ void gp_GTrsf2d::Power (const Standard_Integer N)
|
||||
gp_XY Temploc = loc;
|
||||
// Standard_Real Tempscale = scale;
|
||||
gp_Mat2d Tempmatrix (matrix);
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) {
|
||||
loc.Add (Temploc.Multiplied (matrix));
|
||||
matrix.Multiply (Tempmatrix);
|
||||
|
@@ -259,7 +259,7 @@ void gp_Mat::Power (const Standard_Integer N)
|
||||
if (Npower < 0) Npower = - Npower;
|
||||
Npower--;
|
||||
gp_Mat Temp = *this;
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) Multiply (Temp);
|
||||
if (Npower == 1) break;
|
||||
Temp.Multiply (Temp);
|
||||
|
@@ -141,7 +141,7 @@ void gp_Mat2d::Power (const Standard_Integer N)
|
||||
if (Npower < 0) Npower = - Npower;
|
||||
Npower--;
|
||||
gp_Mat2d Temp = *this;
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) Multiply (Temp);
|
||||
if (Npower == 1) break;
|
||||
Temp.Multiply (Temp);
|
||||
|
@@ -610,7 +610,7 @@ void gp_Trsf::Power (const Standard_Integer N)
|
||||
if (Npower < 0) Npower = - Npower;
|
||||
Npower--;
|
||||
gp_XYZ Temploc = loc;
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) loc.Add (Temploc);
|
||||
if (Npower == 1) break;
|
||||
Temploc.Add (Temploc);
|
||||
@@ -623,7 +623,7 @@ void gp_Trsf::Power (const Standard_Integer N)
|
||||
Npower--;
|
||||
gp_XYZ Temploc = loc;
|
||||
Standard_Real Tempscale = scale;
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) {
|
||||
loc.Add (Temploc.Multiplied(scale));
|
||||
scale = scale * Tempscale;
|
||||
@@ -640,7 +640,7 @@ void gp_Trsf::Power (const Standard_Integer N)
|
||||
Npower--;
|
||||
gp_Mat Tempmatrix (matrix);
|
||||
if (loc.X() == 0.0 && loc.Y() == 0.0 && loc.Z() == 0.0) {
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) matrix.Multiply (Tempmatrix);
|
||||
if (Npower == 1) break;
|
||||
Tempmatrix.Multiply (Tempmatrix);
|
||||
@@ -649,7 +649,7 @@ void gp_Trsf::Power (const Standard_Integer N)
|
||||
}
|
||||
else {
|
||||
gp_XYZ Temploc = loc;
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) {
|
||||
loc.Add (Temploc.Multiplied (matrix));
|
||||
matrix.Multiply (Tempmatrix);
|
||||
@@ -680,7 +680,7 @@ void gp_Trsf::Power (const Standard_Integer N)
|
||||
gp_XYZ Temploc = loc;
|
||||
Standard_Real Tempscale = scale;
|
||||
gp_Mat Tempmatrix (matrix);
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) {
|
||||
loc.Add ((Temploc.Multiplied (matrix)).Multiplied (scale));
|
||||
scale = scale * Tempscale;
|
||||
|
@@ -310,7 +310,7 @@ void gp_Trsf2d::Power (const Standard_Integer N)
|
||||
if (Npower < 0) Npower = - Npower;
|
||||
Npower--;
|
||||
gp_XY Temploc = loc;
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) loc.Add (Temploc);
|
||||
if (Npower == 1) break;
|
||||
Temploc.Add (Temploc);
|
||||
@@ -323,7 +323,7 @@ void gp_Trsf2d::Power (const Standard_Integer N)
|
||||
Npower--;
|
||||
gp_XY Temploc = loc;
|
||||
Standard_Real Tempscale = scale;
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) {
|
||||
loc.Add (Temploc.Multiplied(scale));
|
||||
scale = scale * Tempscale;
|
||||
@@ -340,7 +340,7 @@ void gp_Trsf2d::Power (const Standard_Integer N)
|
||||
Npower--;
|
||||
gp_Mat2d Tempmatrix (matrix);
|
||||
if (loc.X() == 0.0 && loc.Y() == 0.0) {
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) matrix.Multiply (Tempmatrix);
|
||||
if (Npower == 1) break;
|
||||
Tempmatrix.Multiply (Tempmatrix);
|
||||
@@ -349,7 +349,7 @@ void gp_Trsf2d::Power (const Standard_Integer N)
|
||||
}
|
||||
else {
|
||||
gp_XY Temploc = loc;
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) {
|
||||
loc.Add (Temploc.Multiplied (matrix));
|
||||
matrix.Multiply (Tempmatrix);
|
||||
@@ -379,7 +379,7 @@ void gp_Trsf2d::Power (const Standard_Integer N)
|
||||
gp_XY Temploc = loc;
|
||||
Standard_Real Tempscale = scale;
|
||||
gp_Mat2d Tempmatrix (matrix);
|
||||
while (1) {
|
||||
for(;;) {
|
||||
if (IsOdd(Npower)) {
|
||||
loc.Add ((Temploc.Multiplied (matrix)).Multiplied (scale));
|
||||
scale = scale * Tempscale;
|
||||
|
Reference in New Issue
Block a user