[cfe-dev] Unused attribute warnings for target-specific attributes

Nico Weber thakis at chromium.org
Wed Sep 19 23:46:15 PDT 2012


Wattributes apparently warns about
__attribute__((__force_align_arg_pointer__)) being unused when
building for ARM. As far as I understand, __force_align_arg_pointer__
is a x86-only attribute. What's the right fix here? Should application
code make sure to only use the attribute when building for x86? Or
should clang not warn about unused attributes that are for different
architectures from the current target?


More information about the cfe-dev mailing list