Basile STARYNKEVITCH wrote:

A more sophisticated variant would be to have every attribute belonging to some attribute class, and have Wno-attributes=attributeclass but I feel that is too complex!

An even more crazy idea would be to interpret the argument to -Wno-attribute as a regular expression (or file name globing pattern like in the posix glob function, or prefix) for attributes to avoid.

And that suggestion would make Diego happy. He still would add -Wno-attribute=user to ignore the __attribute__((user)) and I would use -Wno-attribute='foo*' [if globbing] or -Wno-attribute='foo.*' [if using regexps] or just Wno-attribute=foo [if prefixing] to mean don't output attribute warning for any attribute whose name starts with foo.

However, I feel that is quite complex, and I would be happy with watever people like.

In addition, one could think of a plugin specific argument to avoid warning about its attributes, something like -fplugin-arg-dehydra-dont-warn-attributes which would perhaps change (ie add a flag or argument to) the callback registered thru PLUGIN_ATTRIBUTES

Regards.
--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

Reply via email to