__attribute__((unused)) 函数属性

1、如果未引用函数,unused 函数属性将阻止编译器生成警告。这不会改变未使用的函数删除过程的行为。

2、这个函数属性是ARM编译器支持的GNU编译器扩展。

3、例程

static int Function_Attributes_unused_0(int b) __attribute__((unused));

 

你可能感兴趣的:(C语言)