https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> --- 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 really rather not do that, but we could start with std::basic_string. > Should -Wunused be > tweaked to diagnose unused variables of all types and let users deal with > the fallout for RAII classes by decorating then with attribute unused? I don't think that would be popular.