PC-Lint的威力
来源:互联网 发布:语音制作软件 编辑:程序博客网 时间:2024/04/27 14:41
学习DirectX的例子程序时,无意中在<winNT.h> LIne 1662 中发现了一段代码,居然是windows特意为了避免PC-Lint告警而写的。
看来Microsoft也有不少人在使用PC-Lint啊。
#if ! defined(lint)
#define UNREFERENCED_PARAMETER(P) (P)
#define DBG_UNREFERENCED_PARAMETER(P) (P)
#define DBG_UNREFERENCED_LOCAL_VARIABLE(V) (V)
#else // lint
// Note: lint -e530 says don't complain about uninitialized variables for
// this varible. Error 527 has to do with unreachable code.
// -restore restores checking to the -save state
#define UNREFERENCED_PARAMETER(P) \
/*lint -save -e527 -e530 */ \
{ \
(P) = (P); \
} \
/*lint -restore */
#define DBG_UNREFERENCED_PARAMETER(P) \
/*lint -save -e527 -e530 */ \
{ \
(P) = (P); \
} \
/*lint -restore */
#define DBG_UNREFERENCED_LOCAL_VARIABLE(V) \
/*lint -save -e527 -e530 */ \
{ \
(V) = (V); \
} \
/*lint -restore */
#endif // lint
看来Microsoft也有不少人在使用PC-Lint啊。
#if ! defined(lint)
#define UNREFERENCED_PARAMETER(P) (P)
#define DBG_UNREFERENCED_PARAMETER(P) (P)
#define DBG_UNREFERENCED_LOCAL_VARIABLE(V) (V)
#else // lint
// Note: lint -e530 says don't complain about uninitialized variables for
// this varible. Error 527 has to do with unreachable code.
// -restore restores checking to the -save state
#define UNREFERENCED_PARAMETER(P) \
/*lint -save -e527 -e530 */ \
{ \
(P) = (P); \
} \
/*lint -restore */
#define DBG_UNREFERENCED_PARAMETER(P) \
/*lint -save -e527 -e530 */ \
{ \
(P) = (P); \
} \
/*lint -restore */
#define DBG_UNREFERENCED_LOCAL_VARIABLE(V) \
/*lint -save -e527 -e530 */ \
{ \
(V) = (V); \
} \
/*lint -restore */
#endif // lint
- PC-Lint的威力
- pc-lint的使用方法
- PC-Lint的使用方法
- PC-Lint的使用方法
- PC-Lint的使用方法
- PC-Lint的使用方法(一)
- PC-Lint的使用方法(一)
- 安装PC-LINT的方法
- PC-Lint的使用方法(一)
- PC-Lint的使用方法(一)
- PC-Lint的使用方法(一)
- PC-LINT的使用(一)
- PC-LINT的使用(二)
- 【转】PC-Lint的使用方法
- PC-Lint的使用方法(一)
- PC LINT
- pc-lint
- pc-lint
- 螺旋队列
- 控制“li”列表折行时是否对齐
- source Insight使用备忘
- 在命令行下使用JDK编译和运行package中的java程序
- 使用iframe在网页中嵌入复杂表格
- PC-Lint的威力
- 编程经验与帖子的关系
- CSS 经验教训 & IE HACKs
- Android Framework---styles.xml
- ExecuteSql、ExecuteSqlReader的区别
- Android Framework---themes.xml
- hdu 1160
- Windows Phone 开发学习笔记(一) 开发环境搭建
- 各浏览器navigator.userAgent实例