-
Notifications
You must be signed in to change notification settings - Fork 82
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
Compilation clean up warning gnu++11 #71
Conversation
…Wimplicit-fallthrough=]
…c::Rectangle& vpsc::Rectangle::operator=(const vpsc::Rectangle&)' is deprecated [-Wdeprecated-copy]
…er expressions of different signedness: 'int' and 'std::vector<vpsc::Variable*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] cc_nonoverlapconstraints.cpp|204 col 40| warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<vpsc::Variable*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] cc_nonoverlapconstraints.cpp|221 col 40| warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<vpsc::Variable*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] cc_nonoverlapconstraints.cpp|223 col 40| warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<vpsc::Variable*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
… 2 and 10 bytes into a region of size 9 [-Wformat-overflow=]
…nction [-Wreturn-type] constraints.cpp|116 col 1| warning: control reaches end of non-void function [-Wreturn-type]
… std::out_of_range' by value [-Wcatch-value=] constraints.cpp|327 col 53| warning: catching polymorphic type 'class std::out_of_range' by value [-Wcatch-value=] chains.cpp|432 col 23| warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=] chains.cpp|441 col 23| warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=] graphs.cpp|829 col 19| warning: catching polymorphic type 'class std::out_of_range' by value [-Wcatch-value=] topology_graph.cpp|298 col 31| warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=]
…on [-Wreturn-type] io.cpp|137 col 41| warning: 'gt' may be used uninitialized [-Wmaybe-uninitialized] io.cpp|137 col 41| warning: 'sd' may be used uninitialized [-Wmaybe-uninitialized] io.cpp|137 col 41| warning: 'st' may be used uninitialized [-Wmaybe-uninitialized]
…ed [-Wmaybe-uninitialized]
…n [-Wreturn-type] ortho.cpp|253 col 1| warning: control reaches end of non-void function [-Wreturn-type] ortho.cpp|262 col 1| warning: control reaches end of non-void function [-Wreturn-type]
… in '>= 0' is always true [-Wtype-limits] routing.cpp|150 col 27| warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! It looks mostly good, but I do have some nitpicks.
Thanks also for naming the warnings that were being silenced in the commit messages, which made it much easier to review.
There are remaining warning linked to deprecated construction : adaptagrams/cola/libtopology/topology_graph.h Line 242 in d00ce59
In some project fork:
has been replaced by
But that's not enough to clean all related warnings. Those warning also appear when we try to compile the swig python binding. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for those changes. A couple more, but otherwise looks good.
This sounds a fair bit more involved. How about opening a separate issue for it, and then we can get this one merged. |
Thanks again! |
Clean-up some compilation warning report by g++ 13.2.0