https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110881
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org Target Milestone|--- |13.0 Known to work| |13.0 Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> --- This already works in GCC 13.1, you just need to put the attribute after the enumerator name, e.g. eMyEnum_Count __attribute__((__unused__)) or eMyEnum_Count [[maybe_unused]] *** This bug has been marked as a duplicate of bug 105497 ***