]> andersk Git - splint.git/blame - test/tests2.2.expect
Fixed pre-processing bug reported by Adam Clarke. Moved marking point
[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
11db3170 5Finished checking --- 1 code warning, as expected
885824d3 6
7mbool.h:1:17: Type implemented as macro: bool
8
11db3170 9Finished checking --- 1 code warning, as expected
885824d3 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
11db3170 15Finished checking --- 1 code warning, as expected
885824d3 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
11db3170 21Finished checking --- 1 code warning, as expected
885824d3 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
11db3170 26Finished checking --- 2 code warnings, as expected
885824d3 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;, ... }
ce7034f0 30 load file standard.lcd:1218:1: Specification of struct tm
885824d3 31 decl.c:3:17: Field tm_sec in specified corresponds to x in declaration
ce7034f0 32 load file standard.lcd:803:1: Specification of tm_sec
885824d3 33
11db3170 34Finished checking --- 1 code warning, as expected
885824d3 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
11db3170 41Finished checking --- 2 code warnings, as expected
885824d3 42
11db3170 43Finished checking --- no warnings
885824d3 44
11db3170 45Finished checking --- no warnings
885824d3 46
7ebcc5bb 47extension.c:2:18: Parse Error: New function scope inside function. (For help on
1b8ae690 48 parse errors, see splint -help parseerrors.)
885824d3 49*** Cannot continue.
50
11db3170 51Finished checking --- no warnings
885824d3 52
53nestext.c: (in function f)
54nestext.c:3:26: Declaration using extern inside function scope: int test(void)
55
11db3170 56Finished checking --- 1 code warning, as expected
885824d3 57
885824d3 58sizeofarray.c:1:12: Function parameter x declared as manifest array (size
59 constant is meaningless)
60sizeofarray.c: (in function f)
61sizeofarray.c:5:13: Parameter to sizeof is an array-type function parameter:
62 sizeof((x))
63sizeofarray.c:10:16: Return value type size_t does not match declared type int:
64 sizeof((a))
65
11db3170 66Finished checking --- 3 code warnings, as expected
885824d3 67
68rex.c: (in function main)
69rex.c:19:12: Only storage re.parent (type struct rx_hash *) derived from
70 variable declared in this scope is not released (memory leak)
80ee600a 71rex.c:19:12: Only storage *(re.children)->parent (type struct rx_hash *)
72 derived from variable declared in this scope is not released (memory leak)
73rex.c:19:12: Only storage *(*(re.children)->children)->parent (type struct
74 rx_hash *) derived from variable declared in this scope is not released
75 (memory leak)
76rex.c:19:12: Only storage *(*(*(re.children)->children)->children)->parent
77 (type struct rx_hash *) derived from variable declared in this scope is not
78 released (memory leak)
79
11db3170 80Finished checking --- 4 code warnings, as expected
885824d3 81
82struct.c:13:6: Function main declared to return void, should return int
83
11db3170 84Finished checking --- 1 code warning, as expected
This page took 0.142351 seconds and 5 git commands to generate.