]> andersk Git - splint.git/blame - test/init.expect
Created repository.
[splint.git] / test / init.expect
CommitLineData
885824d3 1
2init.c:1:16: Global c[0] initialized to null value: c[0] = NULL
3init.c:1:43: Initial value of c[2][2] is type int, expects char: 3
4init.c:1:48: Global c[3] initialized to null value: c[3] = NULL
5init.c:4:23: Global st.uname initialized to null value: st.uname = NULL
6init.c:4:29: Initial value of st.y is type double, expects int: 1.2
7init.c:7:7: Initializer block for st2[0] has 3 fields, but struct has 4 fields:
8 "bob", { 1, 2 }, NULL
9init.c:8:19: Initial value of st2[1].x is type int, expects int []: 3
10init.c:8:22: Global st2[1].uname initialized to null value: st2[1].uname = NULL
11init.c:10:27: Initial value of a[4] is type double, expects int: 3.4
12init.c:12:34: Initial value of aa[1][1] is type double, expects int: 3.2
13init.c:14:15: Initializer block used for b[0] where int is expected: { 1, 2 }
14init.c:14:25: Initializer block used for b[1] where int is expected: { 3, 4 }
15
16Finished LCLint checking --- 12 code errors found, as expected
17
18init.c:1:16: Global c[0] initialized to null value: c[0] = NULL
19init.c:1:22: Read-only string literal storage used as initial value for
20 unqualified storage: c[1] = "hullo"
21init.c:1:43: Initial value of c[2][2] is type int, expects char: 3
22init.c:1:48: Global c[3] initialized to null value: c[3] = NULL
23init.c:4:7: Read-only string literal storage used as initial value for
24 unqualified storage: st.name = "bob"
25init.c:4:23: Global st.uname initialized to null value: st.uname = NULL
26init.c:4:29: Initial value of st.y is type double, expects int: 1.2
27init.c:7:7: Initializer block for st2[0] has 3 fields, but struct has 4 fields:
28 "bob", { 1, 2 }, NULL
29init.c:8:9: Read-only string literal storage used as initial value for
30 unqualified storage: st2[1].name = "charly"
31init.c:8:19: Initial value of st2[1].x is type int, expects int []: 3
32init.c:8:22: Global st2[1].uname initialized to null value: st2[1].uname = NULL
33init.c:10:27: Initial value of a[4] is type double, expects int: 3.4
34init.c:12:34: Initial value of aa[1][1] is type double, expects int: 3.2
35init.c:14:15: Initializer block used for b[0] where int is expected: { 1, 2 }
36init.c:14:25: Initializer block used for b[1] where int is expected: { 3, 4 }
37
38Finished LCLint checking --- 15 code errors found, as expected
This page took 0.566641 seconds and 5 git commands to generate.