lighttpd中UNUSED宏的作用

[| 2011/08/23 11:02]
| |
在lighttpd代码中,出现过很多UNUSED(srv)这种代码,查看代码发现#define UNUSED(x) ( (void)(x) ) 这个宏。

看起来没什么用。研究了一下,确实在逻辑上没有用,只是为了防止编译器报unused variable。
by snooda | 分类: 默认分类 | 评论(0) | 引用(0) | 阅读(1684)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]