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

@@ -203,5 +203,5 @@ const Handle(TDF_RelocationTable)& TDF_CopyLabel::RelocationTable() const
void TDF_CopyLabel::UseFilter(const TDF_IDFilter& aFilter)
{
myFilter = aFilter;
myFilter.Assign (aFilter);
}

View File

@@ -37,17 +37,6 @@ TDF_IDFilter::TDF_IDFilter(const Standard_Boolean ignoreMode) :
myIgnore(ignoreMode)
{}
//=======================================================================
//function : TDF_IDFilter
//purpose : Private, to forbid implicit or hidden accesses to
// the copy constructor.
//=======================================================================
TDF_IDFilter::TDF_IDFilter(const TDF_IDFilter& /*aFilter*/)
{}
//=======================================================================
//function : IgnoreAll
//purpose :

View File

@@ -104,27 +104,25 @@ public:
//! Writes the contents of <me> to <OS>.
Standard_EXPORT void Dump (Standard_OStream& anOS) const;
protected:
//! Assignment
void Assign (const TDF_IDFilter& theFilter)
{
myIgnore = theFilter.myIgnore;
myIDMap = theFilter.myIDMap;
}
private:
//! Private, to forbid implicit or hidden accesses to
//! the copy constructor.
Standard_EXPORT TDF_IDFilter(const TDF_IDFilter& aFilter);
TDF_IDFilter(const TDF_IDFilter& aFilter);
TDF_IDFilter& operator= (const TDF_IDFilter& theOther);
private:
Standard_Boolean myIgnore;
TDF_IDMap myIDMap;
};

View File

@@ -41,20 +41,10 @@
TDF_Transaction::TDF_Transaction
(const TCollection_AsciiString& aName)
: myUntilTransaction(0),
myName(aName)
: myName(aName),
myUntilTransaction(0)
{}
//=======================================================================
//function : TDF_Transaction
//purpose : Private copy constructor.
//=======================================================================
TDF_Transaction::TDF_Transaction(const TDF_Transaction& /*aTrans*/)
{}
//=======================================================================
//function : TDF_Transaction
//purpose :
@@ -64,8 +54,8 @@ TDF_Transaction::TDF_Transaction
(const Handle(TDF_Data)& aDF,
const TCollection_AsciiString& aName)
: myDF(aDF),
myUntilTransaction(0),
myName(aName)
myName(aName),
myUntilTransaction(0)
{}

View File

@@ -96,26 +96,17 @@ public:
//! Dumps the content of me into the stream
Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
private:
protected:
//! Private to avoid copy.
TDF_Transaction(const TDF_Transaction& aTrans);
TDF_Transaction& operator= (const TDF_Transaction& theOther);
private:
//! Private to avoid copy.
Standard_EXPORT TDF_Transaction(const TDF_Transaction& aTrans);
Handle(TDF_Data) myDF;
Standard_Integer myUntilTransaction;
TCollection_AsciiString myName;
Standard_Integer myUntilTransaction;
};