https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Szikra from comment #3) > I have found a suggestion to hide warning about ignored attributes: > #pragma clang diagnostic ignored "-Wignored-attributes" > which doesn't seem to have a GCC equivalent. :( I'm pretty sure Clang copied that feature from GCC: https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas