首页
社区
课程
招聘
[旧帖] pc-lint 怎么不工作? 0.00雪花
2010-6-27 12:29 3227

[旧帖] pc-lint 怎么不工作? 0.00雪花

2010-6-27 12:29
3227
使用测试代码test.c
程序代码:
int main(int argc, char* argv[])
{
    int  p = 1;
    unsigned up =1;

    if (p == up)
    {
        p =2;
    }

    return p;
}

使用VC build 提示
Deleting intermediate files and output files for project 'xx - Win32 Debug'.
--------------------Configuration: xx - Win32 Debug--------------------
Compiling...
test.c
d:\program_files\microsoft visual studio\myprojects\tt\test.c(9) : warning C4018: '==' : signed/unsigned mismatch
Linking...
Creating browse info file...

xx.exe - 0 error(s), 1 warning(s)

但是使用pc-lint检测却什么也没有发现
PC-lint for C/C++ (NT) Vers. 8.00w, Copyright Gimpel Software 1985-2007

--- Module:   D:\Program_Files\Microsoft Visual Studio\pclint\Output - pclint.txt (C)
Tool returned code: 0

不是说pc-lint检测规则很严格的吗?怎么没有反映呢?

[CTF入门培训]顶尖高校博士及硕士团队亲授《30小时教你玩转CTF》,视频+靶场+题目!助力进入CTF世界

收藏
点赞0
打赏
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回