]> andersk Git - splint.git/blame - test/tests2.2.expect
Merged code tree with Dave Evans's version. Many changes to numberous to list....
[splint.git] / test / tests2.2.expect
CommitLineData
885824d3 1
2boolops.c: (in function main)
3boolops.c:12:3: Assignment of int to Kzam: b = 12
4
5Finished LCLint checking --- 1 code error found, as expected
6
7mbool.h:1:17: Type implemented as macro: bool
8
9Finished LCLint checking --- 1 code error found, as expected
10
11boolenum.c: (in function main)
12boolenum.c:11:8: Use of == with BOOLEAN variables (risks inconsistency because
13 of multiple true values): a == TRUE
14
15Finished LCLint checking --- 1 code error found, as expected
16
17break.c: (in function f)
18break.c:9:4: Dereference of possibly null pointer x: *x
19 break.c:1:24: Storage x may become null
20
21Finished LCLint checking --- 1 code error found, as expected
22
23bstring.c:4:14: Initial value of s4[0] is type char *, expects char: "hullo"
24bstring.c:4:23: Initial value of s4[1] is type char *, expects char: "g'bye"
25
26Finished LCLint checking --- 2 code errors found, as expected
27
28decl.c:3:21: Structure struct tm declared with fields { int x; }, specified
29 with fields { int tm_sec; int tm_min; int tm_hour;, ... }
30 load file ansi.lcd: Specification of struct tm
31 decl.c:3:17: Field tm_sec in specified corresponds to x in declaration
32 load file ansi.lcd: Specification of tm_sec
33
34Finished LCLint checking --- 1 code error found, as expected
35
36enumbool.c:1:34: Member of boolean enumerated type definition does not match
37 name set to represent TRUE or FALSE: false
38enumbool.c:1:34: Member of boolean enumerated type definition does not match
39 name set to represent TRUE or FALSE: true
40
41Finished LCLint checking --- 2 code errors found, as expected
42
43Finished LCLint checking --- no code errors found
44
45Finished LCLint checking --- no code errors found
46
47extension.c:3:1: Parse Error. (For help on parse errors, see lclint -help
48 parseerrors.)
49*** Cannot continue.
50
51Finished LCLint checking --- no code errors found
52
53nestext.c: (in function f)
54nestext.c:3:26: Declaration using extern inside function scope: int test(void)
55
56Finished LCLint checking --- 1 code error found, as expected
57
58Finished LCLint checking --- no code errors found
59
60sizeofarray.c:1:12: Function parameter x declared as manifest array (size
61 constant is meaningless)
62sizeofarray.c: (in function f)
63sizeofarray.c:5:13: Parameter to sizeof is an array-type function parameter:
64 sizeof((x))
65sizeofarray.c:10:16: Return value type size_t does not match declared type int:
66 sizeof((a))
67
68Finished LCLint checking --- 3 code errors found, as expected
69
70rex.c: (in function main)
71rex.c:19:12: Only storage re.parent (type struct rx_hash *) derived from
72 variable declared in this scope is not released (memory leak)
73
74Finished LCLint checking --- 1 code error found, as expected
75
76struct.c:13:6: Function main declared to return void, should return int
77
78Finished LCLint checking --- 1 code error found, as expected
This page took 0.076526 seconds and 5 git commands to generate.