pc-lint 怎么不工作
使用测试代码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检测规则很严格的吗?怎么没有反映呢?
[ 本帖最后由 vfdff 于 2010-6-27 12:33 编辑 ]