[Bug c++/55203] No unused warning for variables of non-trivial types

2021-09-15 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 Martin Sebor changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/55203] No unused warning for variables of non-trivial types

2019-04-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 Andrew Pinski changed: What|Removed |Added CC||maxim.prohorenko at gmail dot com ---

[Bug c++/55203] No unused warning for variables of non-trivial types

2017-06-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #20 from Martin Sebor --- *** Bug 81250 has been marked as a duplicate of this bug. ***

[Bug c++/55203] No unused warning for variables of non-trivial types

2017-06-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #19 from Jonathan Wakely --- cppcheck isn't a compiler, it just does simple pattern matching and maybe uses whitelists/blacklists of types. I don't think anything it does is really relevant to GCC.

[Bug c++/55203] No unused warning for variables of non-trivial types

2017-06-30 Thread jg at jguk dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 Jon Grant changed: What|Removed |Added CC||jg at jguk dot org --- Comment #18 from Jon

[Bug c++/55203] No unused warning for variables of non-trivial types

2017-06-30 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #17 from Marc Glisse --- I wonder if attributes unused / warn_unused should be automatically inherited by classes when a member or base has it (with various rules, maybe unused has priority over warn_unused). For a tuple of locks or

[Bug c++/55203] No unused warning for variables of non-trivial types

2017-06-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #16 from Jonathan Wakely --- I missed this update, sorry. (In reply to Martin Sebor from comment #15) > Jonathan, what's the next step? It sounds as though you don't think > decorating nearly every libstdc++ class makes sense. I'd

[Bug c++/55203] No unused warning for variables of non-trivial types

2017-02-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #15 from Martin Sebor --- The core bits of this feature are in place but the std::string test case is still not diagnosed because string has non-trivial ctor and dtor and isn't decorated using the warn_unused attribute. Jonathan,

[Bug c++/55203] No unused warning for variables of non-trivial types

2016-06-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment

[Bug c++/55203] No unused warning for variables of non-trivial types

2016-06-20 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #13 from Marc Glisse --- (In reply to Jonathan Wakely from comment #6) > Which are the relevant classes? It seems to me that we want to tag almost > everything except a few RAII types such as std::lock_guard and > std::unique_lock,

[Bug c++/55203] No unused warning for variables of non-trivial types

2016-06-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #12 from Jonathan Wakely --- (In reply to Sergio Martins from comment #11) > Did the patch for [warn_unused] get in ? Yes: https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Attributes.html

[Bug c++/55203] No unused warning for variables of non-trivial types

2016-02-18 Thread gcc at bobbyperu dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 Sergio Martins changed: What|Removed |Added CC||gcc at bobbyperu dot info --- Comment

[Bug c++/55203] No unused warning for variables of non-trivial types

2016-02-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #10 from Jonathan Wakely --- Doc patch posted to https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01184.html

[Bug c++/55203] No unused warning for variables of non-trivial types

2013-07-16 Thread l.lunak at suse dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #5 from Lubos Lunak l.lunak at suse dot cz --- Gcc patch is in, r200941. Keeping open for libstdc++ to use the attribute for its relevant classes. I can try to submit a patch when I find the time, but I doubt I'll get past the most

[Bug c++/55203] No unused warning for variables of non-trivial types

2013-07-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #6 from Jonathan Wakely redi at gcc dot gnu.org --- Which are the relevant classes? It seems to me that we want to tag almost everything except a few RAII types such as std::lock_guard and std::unique_lock, which would be quite

[Bug c++/55203] No unused warning for variables of non-trivial types

2013-07-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #7 from Jonathan Wakely redi at gcc dot gnu.org --- (In reply to Jonathan Wakely from comment #6) std::lock_guard that is unused is useless. Oops, I meant is *not* useless! Sorry.

[Bug c++/55203] No unused warning for variables of non-trivial types

2013-07-16 Thread l.lunak at suse dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #8 from Lubos Lunak l.lunak at suse dot cz --- (In reply to Jonathan Wakely from comment #6) Which are the relevant classes? It seems to me that we want to tag almost everything except a few RAII types such as std::lock_guard and

[Bug c++/55203] No unused warning for variables of non-trivial types

2013-07-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #9 from Jonathan Wakely redi at gcc dot gnu.org --- I can fix the docs some time.

[Bug c++/55203] No unused warning for variables of non-trivial types

2013-06-15 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #4 from Paolo Carlini paolo.carlini at oracle dot com --- I guess this could be the right time to properly submit something to gcc-patches (for 4.9)

[Bug c++/55203] No unused warning for variables of non-trivial types

2012-11-07 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com 2012-11-07 14:54:59 UTC --- Patches should go to gcc-patches. But I'm afraid it's too late for something like this to make 4.8.0.

[Bug c++/55203] No unused warning for variables of non-trivial types

2012-11-04 Thread l.lunak at suse dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 Lubos Lunak l.lunak at suse dot cz changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/55203] No unused warning for variables of non-trivial types

2012-11-04 Thread l.lunak at suse dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 --- Comment #2 from Lubos Lunak l.lunak at suse dot cz 2012-11-04 11:04:52 UTC --- Created attachment 28609 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28609 gcc patch