__attribute__((unused))
来源:互联网 发布:为什么mac不能玩lol 编辑:程序博客网 时间:2024/06/05 16:10
内核时注意到有些函数会有添加__attribute__((unused)),
在gcc手册中找到了有关的解释:
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.
表示该函数或变量可能不使用,这个属性可以避免编译器产生警告信息。
在gcc手册中找到了有关的解释:
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.
表示该函数或变量可能不使用,这个属性可以避免编译器产生警告信息。
0 0
- __attribute__((unused))
- __attribute__((unused))
- __attribute__((unused))的作用
- 有关gcc的扩展__attribute__((unused))
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- __attribute__
- 基于多播实现的android手机户外对讲APP
- Lex and Yacc
- awr报告里面的init.ora 显示参数是begin snap 时的值还是end snap的值呢
- 发现一种JavaScript“类的继承”的方法
- 网页爬虫基础篇
- __attribute__((unused))
- SAP FI/CO 成本中心类型与功能范围
- 调用系统的相机,联系人,短信等问题
- html,js,jquery 使当前链接不跳转、不刷新;
- 十年前的各大网站首页是什么样子
- C++构建二叉树
- Android Test
- 网络编程学习笔记(UDP的connect函数)
- 《鸟哥的Linux私房菜》阅读笔记(1)