https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102049
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2021-08-25 CC| |msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Supporting the two-argument form for compatibility with Clang makes sense to me. I'm not sure I understand what letting the empty string as the second argument suppress warnings would be useful for. The only purpose of declaring something deprecated that I know of is to trigger a warning when it's used, so unless I'm missing something, that doesn't seem necessary or a good idea (if no warning is wanted then remove the attribute).