- 论坛徽章:
- 0
|
原帖由 coldwarm 于 2006-9-19 21:04 发表
没用过pclint,但每个lint工具都应当带一些默认规则。除非你要定制自己的lint规则库,不过我觉得默认规则应当够用了。
[code]
Splint 3.1.1 --- 21 Apr 2006
type.c: (in function main)
type.c:6:6: Assig ...
你是用什么命令运行的啊。什么参数呢》
我在aix下运行lint a.c
输出了结果大部分是报告.h文件的问题的。
样例如下:
"stdio.h", line 447 ("a.c"): warning: symbol opterr declared but never used or defined
"inttypes.h", line 102 ("a.c"): warning: function wcstoumax declared but never used or defined
"a.c", line 7: warning: function printf used but not defined
"a.c", line 7: warning: function printf return value is always ignored
"stdio.h", line 269 ("a.c"): warning: function sscanf declared but never used or defined
"stdio.h", line 260 ("a.c"): warning: function setvbuf declared but never used or defined
"stdio.h", line 310 ("a.c"): warning: function putchar_unlocked declared but never used or defined
"stdio.h", line 449 ("a.c"): warning: symbol optopt declared but never used or defined
"vm_types.h", line 152 ("a.c"): warning: symbol adspace_t defined but never used
"stdio.h", line 295 ("a.c"): warning: function ungetc declared but never used or defined
"stdio.h", line 192 ("a.c"): warning: function vfscanf declared but never used or defined
"vm_types.h", line 136 ("a.c"): warning: symbol vmaddr_t defined but never used
根本就没有出现你说的报告。
望指点指点。 |
|