__attribute__((unused))

来源:互联网 发布:药智数据cfda39健康网 编辑:程序博客网 时间:2024/05/21 05:18
unused:This attribute, attached to a function, means that the function is meant to be
        possibly unused. GCC will not produce a warning for this function.
===============================================================================
used: This attribute, attached to a function, means that code must be emitted for the
       function even if it appears that the function is not referenced. This is useful,
       for example, when the function is referenced only in inline assembly.