Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sl1pkn07 opened this issue Apr 22, 2018 · 0 comments

Comments

@sl1pkn07
Copy link

sl1pkn07 commented Apr 22, 2018

[ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant