tpaviot / oce

OpenCASCADE Community Edition (OCE): a community driven fork of the Open CASCADE library.
http://groups.google.com/group/oce-dev
GNU Lesser General Public License v2.1
811 stars 284 forks source link

warning: base class 'class TCollection_BaseSequence' should be explicitly initialized in the copy constructor #695

Open sl1pkn07 opened 6 years ago

sl1pkn07 commented 6 years ago
[ 41%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/StdMeshers.dir/src/StdMeshers/StdMeshers_LocalLength.cpp.o
/tmp/makepkg/sl1-freecad-git/src/freecad/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_ImportSource.cpp: In function 'std::vector<SMESH_Group*> {anonymous}::getValidGroups(const std::vector<SMESH_Group*>&, StudyContextStruct*, bool)':
/tmp/makepkg/sl1-freecad-git/src/freecad/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_ImportSource.cpp:128:15: warning: variable 'i' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
     for ( int i = 0; i < groups.size(); ++i )
               ^
In file included from /opt/oce/lib/oce-0.18/../../include/oce/TopTools_HSequenceOfShape.hxx:13:0,
                 from /opt/oce/lib/oce-0.18/../../include/oce/BRepProj_Projection.lxx:16,
                 from /opt/oce/lib/oce-0.18/../../include/oce/BRepProj_Projection.hxx:90,
                 from /tmp/makepkg/sl1-freecad-git/src/freecad/src/Mod/Part/App/TopoShapePyImp.cpp:36:
/opt/oce/lib/oce-0.18/../../include/oce/TCollection_Sequence.lxx: In copy constructor 'TopTools_SequenceOfShape::TopTools_SequenceOfShape(const TopTools_SequenceOfShape&)':
/opt/oce/lib/oce-0.18/../../include/oce/TopTools_SequenceOfShape.hxx:109:30: warning: base class 'class TCollection_BaseSequence' should be explicitly initialized in the copy constructor [-Wextra]
 #define TCollection_Sequence TopTools_SequenceOfShape
                              ^
/opt/oce/lib/oce-0.18/../../include/oce/TCollection_Sequence.lxx:31:8: note: in expansion of macro 'TCollection_Sequence'
 inline TCollection_Sequence::TCollection_Sequence(const TCollection_Sequence& theOther)
        ^~~~~~~~~~~~~~~~~~~~

i get tons of this warnings when tried build FreeCAD(from git) with OCE 0.18.3 and GCC 7.3.1

any hit for silence it?

greetings