9.48 __attribute__((unused)) function attribute

The unused function attribute prevents the compiler from generating warnings if the function is not referenced. This does not change the behavior of the unused function removal process.


This function attribute is a GNU compiler extension that the ARM compiler supports.


static int Function_Attributes_unused_0(int b) __attribute__((unused));
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.