1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0031004: Coding - eliminate warnings issued by gcc 9.1.0

Fixed -Wrestrict warning within OSD::SetSignal().

Fixed -Wdeprecated-copy warning by adding missing counterpart
in pair copy constructor / assignment operator or by removing trivial constructor.

AdvApp2Var_Node, AdvApp2Var_Patch are now declared as Handle.
AdvApp2Var_Iso is now passed by Handle.

Disabled operator= for TDF_Transaction and TDF_IDFilter.

Standard.cxx - fixed GCC version mischeck causing building failure with experimental GCC versions.

TopOpeBRepDS_EXPORT.cxx - fixed -Wmaybe-uninitialized warnings.
This commit is contained in:
kgv
2020-05-08 23:41:22 +03:00
committed by bugmaster
parent 4b59685af1
commit 158f2931a7
55 changed files with 670 additions and 1001 deletions

View File

@@ -138,6 +138,10 @@ public:
return &Order;
}
//! Copy constructor.
Graphic3d_ValidatedCubeMapOrder (const Graphic3d_ValidatedCubeMapOrder& theOther)
: Order (theOther.Order) {}
public:
const Graphic3d_CubeMapOrder Order; //!< Completely valid order
@@ -146,13 +150,11 @@ private:
//! Only Graphic3d_CubeMapOrder can generate Graphic3d_ValidatedCubeMapOrder in 'Validated' method.
Graphic3d_ValidatedCubeMapOrder(const Graphic3d_CubeMapOrder theOrder)
:
Order(theOrder)
{}
: Order(theOrder) {}
//! Deleted 'operator='
Graphic3d_ValidatedCubeMapOrder& operator= (const Graphic3d_ValidatedCubeMapOrder&);
};
#endif // _Graphic3d_CubeMapOrder_HeaderFile
#endif // _Graphic3d_CubeMapOrder_HeaderFile

View File

@@ -35,12 +35,6 @@ public:
SetCoord (0.0f, 0.0f, 0.0f);
}
//! Creates a point with coordinates identical to thePoint.
Graphic3d_Vertex (const Graphic3d_Vertex& thePoint)
{
SetCoord (thePoint.X(), thePoint.Y(), thePoint.Z());
}
//! Creates a point with theX, theY and theZ coordinates.
Graphic3d_Vertex (const Standard_ShortReal theX,
const Standard_ShortReal theY,

View File

@@ -141,15 +141,6 @@ public:
&& myWorldViewState == theOther.myWorldViewState;
}
//! Copy world view projection state.
void operator = (const Graphic3d_WorldViewProjState& theOther)
{
myIsValid = theOther.myIsValid;
myCamera = theOther.myCamera;
myProjectionState = theOther.myProjectionState;
myWorldViewState = theOther.myWorldViewState;
}
private:
Standard_Boolean myIsValid;