[Bug c++/81250] C++ warnings about unused stl

2017-06-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/81250] C++ warnings about unused stl

2017-06-30 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250 --- Comment #6 from Marc Glisse --- See PR 55203.

[Bug c++/81250] C++ warnings about unused stl

2017-06-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #5

[Bug c++/81250] C++ warnings about unused stl

2017-06-29 Thread jg at jguk dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250 --- Comment #4 from Jon Grant --- $ cppcheck --enable=all main.cpp Checking main.cpp... [main.cpp:12]: (style) Unused variable: unused_str [main.cpp:17]: (style) Unused variable: unused_var (information) Cppcheck cannot find all the include

[Bug c++/81250] C++ warnings about unused stl

2017-06-29 Thread jg at jguk dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250 --- Comment #3 from Jon Grant --- Thank you for your replies. I can see why it is the way it is. For the moment we can remove unused std::string via code reviews. Maybe it is something better suited to a static analysis tool. Jon

[Bug c++/81250] C++ warnings about unused stl

2017-06-29 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250 --- Comment #2 from Jonathan Wakely --- Right, we intentionally don't warn for unused variables with non-trivial destructors, because the destructor could be doing something useful (like logging that a scope was exited, or committing a

[Bug c++/81250] C++ warnings about unused stl

2017-06-29 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.