https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
--- Comment #57 from Roman Krotov <romato.san1337 at gmail dot com> --- (In reply to Ed Catmur from comment #55) > So this problem will resolve itself, over time. But I don't see any reasons not to implement the switch right now... Late is better than never. > we can expect that attribute to be adopted where people intend that behavior > as opposed to the > warning not suppressible by cast to void I see your point and I partially agree with it, but what about the projects what don't agree with the distinction of these 2 attributes? Or just want to be more compatible with clang? Or they just may not agree with the choice of a library, that decided to put wur instead of nodiscard for a specific function. Something like -Wno-void-unused would still be better for them than -Wno-unused-result, for the reasons in my previous comment. (In reply to Martin Uecker from comment #56) > works as expected and is supported for older language modes Even if one day projects, that will prefer to stay on C99 or C11 and use -Wpedantic (which warns about [[]] right now), will be able to use [[syntax]] without any warning, they may still not like it. Even if gcc will include nodiscard into the __attribute__ syntax, there, for sure, will be the libraries that won't prefer to update or use the new attribute. For these situations, or even if they **will** use the new attribute, see my previous paragraph.