[PATCH] Downgrade 'optnone' attribute conflicts to warning
Paul_Robinson at playstation.sony.com
Mon Jan 12 12:31:45 PST 2015
When attribute 'optnone' appears on the same declaration with a
conflicting attribute, warn about the conflict and pick a "winning"
attribute to preserve, instead of emitting an error. This matches the
behavior when the conflicting attributes are on different declarations.
Along the way I discovered that conflicts involving __forceinline were
reported as 'always_inline' (alternate spellings for the same
attribute) so I hacked in a way to provide the spelling used in the
declaration. There must be a better way, though...
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7759 bytes
Desc: not available
More information about the cfe-commits