Improve use of compiler attributes