]> andersk Git - splint.git/blame_incremental - test/tests2.2.expect
Added support for ISO C99 _Bool and stdbool bool/true/false. The
[splint.git] / test / tests2.2.expect
... / ...
CommitLineData
1
2boolops.c: (in function main)
3boolops.c:12:3: Assignment of int to Kzam: b = 12
4
5Finished checking --- 1 code warning, as expected
6
7mbool.h:1:17: Type implemented as macro: bool
8
9Finished checking --- 1 code warning, 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 checking --- 1 code warning, 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 checking --- 1 code warning, 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 checking --- 2 code warnings, 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 standard.lcd: Specification of struct tm
31 decl.c:3:17: Field tm_sec in specified corresponds to x in declaration
32 load file standard.lcd: Specification of tm_sec
33
34Finished checking --- 1 code warning, as expected
35
36Finished checking --- no warnings
37
38enumbool.c:1:16: Enumerator member false declared with inconsistent type:
39 enum { false, true }
40 load file standard.lcd: Specification of false: bool
41enumbool.c:1:27: Enumerator member true declared with inconsistent type:
42 enum { false, true }
43 load file standard.lcd: Specification of true: bool
44enumbool.c:1:34: Member of boolean enumerated type definition does not match
45 name set to represent true or false: false
46enumbool.c:1:34: Member of boolean enumerated type definition does not match
47 name set to represent true or false: true
48
49Finished checking --- 4 code warnings, expected 2
50
51Finished checking --- no warnings
52
53extension.c:2:18: Parse Error: New function scope inside function. (For help on
54 parse errors, see splint -help parseerrors.)
55*** Cannot continue.
56
57Finished checking --- no warnings
58
59nestext.c: (in function f)
60nestext.c:3:26: Declaration using extern inside function scope: int test(void)
61
62Finished checking --- 1 code warning, as expected
63
64sizeofarray.c:1:12: Function parameter x declared as manifest array (size
65 constant is meaningless)
66sizeofarray.c: (in function f)
67sizeofarray.c:5:13: Parameter to sizeof is an array-type function parameter:
68 sizeof((x))
69sizeofarray.c:10:16: Return value type size_t does not match declared type int:
70 sizeof((a))
71
72Finished checking --- 3 code warnings, as expected
73
74rex.c: (in function main)
75rex.c:19:12: Only storage re.parent (type struct rx_hash *) derived from
76 variable declared in this scope is not released (memory leak)
77rex.c:19:12: Only storage *(re.children)->parent (type struct rx_hash *)
78 derived from variable declared in this scope is not released (memory leak)
79rex.c:19:12: Only storage *(*(re.children)->children)->parent (type struct
80 rx_hash *) derived from variable declared in this scope is not released
81 (memory leak)
82rex.c:19:12: Only storage *(*(*(re.children)->children)->children)->parent
83 (type struct rx_hash *) derived from variable declared in this scope is not
84 released (memory leak)
85
86Finished checking --- 4 code warnings, as expected
87
88struct.c:13:6: Function main declared to return void, should return int
89
90Finished checking --- 1 code warning, as expected
This page took 0.03834 seconds and 5 git commands to generate.