https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85444
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> --- I don't see an appropriate one, so I'd add a new one. Maybe the closest is something like -Wignored-attributes but that's not quite right.