https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86368

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
GCC now supports -Wno-attributes=acme::rocketboots to ignore a specific scoped
attribute and -Wno-attributes=acme:: to ignore all unknown attributes in the
acme namespace.

I still think it's essential that we warn by default. The utter disaster that
is [[msvc::no_unique_address]] was caused by a compiler that didn't issue a
diagnostic when it saw an unknown [[no_unique_address]] attribute. Telling
users when an attribute is not recognized is important.

And there's no conformance issue here with the "ignored" wording in the
standard. We are free to issue any warnings we want to, for any reason. If you
don't like a given warning, you can use -Wno-xxx options or pragmas.

Reply via email to