https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250
--- Comment #6 from Marc Glisse ---
See PR 55203.
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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250
Daniel Krügler changed:
What|Removed |Added
CC||daniel.kruegler@googlemail.