Unused attribute warnings for target-specific attributes

Hi,

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?

Thanks,
Nico

Hello

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?

Application definitely should not use target attribute on other
target. After all, handling this is simple preprocessor thing.