]> andersk Git - splint.git/blame - test/tests2.2a.expect
Fixes for win32
[splint.git] / test / tests2.2a.expect
CommitLineData
885824d3 1
2erik.c: (in function main)
3erik.c:6:4: Return value (type int) ignored: scanf("%lf %f", ...
4
5Finished LCLint checking --- 1 code error found, as expected
6
7boolcomp.c: (in function f)
8boolcomp.c:5:7: Use of == with bool variables (risks inconsistency because of
9 multiple true values): a == b
10boolcomp.c:9:13: Use of == with bool variables (risks inconsistency because of
11 multiple true values): a == b
12boolcomp.c:11:6: Use of != with bool variables (risks inconsistency because of
13 multiple true values): a != b
14boolcomp.c:16:6: Use of == with bool variables (risks inconsistency because of
15 multiple true values): b == TRUE
16boolcomp.c:20:2: Path with no return in function declared to return int
17
18Finished LCLint checking --- 5 code errors found, as expected
19
20Finished LCLint checking --- no code errors found
21
22addassign.c: (in function hash)
23addassign.c:7:7: Incompatible types for += (int, char): h += *name++
24
25Finished LCLint checking --- 1 code error found, as expected
26
27toralf.c: (in function func1)
28toralf.c:14:3: Incompatible types for += (char *, char): s += 'c'
29toralf.c:15:3: Variable i1 used before definition
30toralf.c:15:9: Variable f used before definition
31toralf.c: (in function func2)
32toralf.c:23:8: Variable i2 used before definition
33toralf.c: (in function main)
34toralf.c:28:10: Null storage passed as non-null param: func1 (NULL)
35
36Finished LCLint checking --- 5 code errors found, as expected
37
38Finished LCLint checking --- no code errors found
39
40Finished LCLint checking --- no code errors found
41
42arrayparam.c:1:12: Function parameter x is incomplete type (inner array must
43 have bounds): int [2] []
44arrayparam.c:11:12: Function parameter x is incomplete type (inner array must
45 have bounds): int [] []
46arrayparam.c:16:12: Function parameter x is incomplete type (inner array must
47 have bounds): int [] [] [2]
48arrayparam.c:21:12: Function parameter x is incomplete type (inner array must
49 have bounds): int [2] [] [2]
50arrayparam.c:26:12: Function parameter x declared as manifest array (size
51 constant is meaningless)
52
53Finished LCLint checking --- 5 code errors found, as expected
54
55Finished LCLint checking --- no code errors found
56
cc78dedd 57Finished LCLint checking --- no code errors found
885824d3 58
59obviousloop.c: (in function f)
60obviousloop.c:14:3: Unreachable code: x = 12
61obviousloop.c: (in function f1)
62obviousloop.c:36:2: Path with no return in function declared to return int
63obviousloop.c: (in function f1b)
64obviousloop.c:59:3: Unreachable code: x = 12
65obviousloop.c: (in function f2)
66obviousloop.c:75:3: Unreachable code: x = 12
67
68Finished LCLint checking --- 4 code errors found, as expected
69
70bitops.c: (in function f)
71bitops.c:3:11: Left operand of & is not unsigned value (int): i1 & i2
72bitops.c:3:11: Variable x initialized to type unsigned int, expects int:
73 i1 & i2
74bitops.c:4:21: Right operand of & is not unsigned value (int): u1 & i2
75bitops.c:5:13: Left operand of & is not unsigned value (int): i1 & i2
76bitops.c:5:13: Variable s initialized to type unsigned int, expects short int:
77 i1 & i2
78bitops.c:6:14: Variable s2 initialized to type int, expects short int: i1 + i2
79bitops.c:9:7: Left operand of << is not unsigned value (int): i1 << 3
80bitops.c:14:7: Left operand of ^ is not unsigned value (int): i1 ^ u1
81bitops.c:15:12: Right operand of ^ is not unsigned value (int): u1 ^ i1
82bitops.c:5:9: Variable s declared but not used
83bitops.c:6:9: Variable s2 declared but not used
84
85Finished LCLint checking --- 11 code errors found, as expected
86
87bitops.c: (in function f)
88bitops.c:5:13: Variable s initialized to type int, expects short int: i1 & i2
89bitops.c:6:14: Variable s2 initialized to type int, expects short int: i1 + i2
90bitops.c:9:7: Left operand of << is not unsigned value (int): i1 << 3
91bitops.c:5:9: Variable s declared but not used
92bitops.c:6:9: Variable s2 declared but not used
93
94Finished LCLint checking --- 5 code errors found, as expected
95
96isalpha.c: (in function f)
cc78dedd 97isalpha.c:5:19: Function isalpha expects arg 1 to be int gets char: c
885824d3 98
99Finished LCLint checking --- 1 code error found, as expected
100
101isalpha.c: (in function f)
cc78dedd 102isalpha.c:5:19: Function isalpha expects arg 1 to be int gets char: c
885824d3 103
104Finished LCLint checking --- 1 code error found, as expected
105
106Finished LCLint checking --- no code errors found
107
108popik.c:7:3: Variable has unknown (implicitly int) type: dummy[0]
109popik.c:7:3: Variable has unknown (implicitly int) type: dummy[1]
110popik.c:7:3: Variable has unknown (implicitly int) type: dummy[2]
111popik.c:7:3: Variable has unknown (implicitly int) type: dummy[3]
112popik.c:24:3: Variable has unknown (implicitly int) type: dummy3[0]
113popik.c:24:3: Variable has unknown (implicitly int) type: dummy3[1]
114popik.c:24:3: Variable has unknown (implicitly int) type: dummy3[2]
115popik.c:24:3: Variable has unknown (implicitly int) type: dummy3[3]
116popik.c:1:14: File static variable dummy declared but not used
117popik.c:10:24: File static variable dummy2 declared but not used
118popik.c:18:14: File static variable dummy3 declared but not used
119
120Finished LCLint checking --- 11 code errors found, as expected
This page took 0.134202 seconds and 5 git commands to generate.