]>
Commit | Line | Data |
---|---|---|
885824d3 | 1 | |
2 | init.c:1:16: Global c[0] initialized to null value: c[0] = NULL | |
3 | init.c:1:43: Initial value of c[2][2] is type int, expects char: 3 | |
4 | init.c:1:48: Global c[3] initialized to null value: c[3] = NULL | |
5 | init.c:4:23: Global st.uname initialized to null value: st.uname = NULL | |
6 | init.c:4:29: Initial value of st.y is type double, expects int: 1.2 | |
80ee600a | 7 | init.c:7:7: Initializer block for st2[0] has 3 fields, but struct { char * |
8 | name; int [] x; char * uname;, ... } has 4 fields: "bob", { 1, 2 }, NULL | |
885824d3 | 9 | init.c:8:19: Initial value of st2[1].x is type int, expects int []: 3 |
10 | init.c:8:22: Global st2[1].uname initialized to null value: st2[1].uname = NULL | |
7534721d | 11 | init.c:10:13: Initializer block for a has 7 elements, but declared as int [10]: |
12 | 1, 2, 3, 4, 3.4, 6, 4 | |
885824d3 | 13 | init.c:10:27: Initial value of a[4] is type double, expects int: 3.4 |
14 | init.c:12:34: Initial value of aa[1][1] is type double, expects int: 3.2 | |
7534721d | 15 | init.c:14:13: Initializer block for b has 2 elements, but declared as int [10]: |
16 | { 1, 2 }, { 3, 4 } | |
885824d3 | 17 | init.c:14:15: Initializer block used for b[0] where int is expected: { 1, 2 } |
18 | init.c:14:25: Initializer block used for b[1] where int is expected: { 3, 4 } | |
19 | ||
11db3170 | 20 | Finished checking --- 14 code warnings, as expected |
885824d3 | 21 | |
22 | init.c:1:16: Global c[0] initialized to null value: c[0] = NULL | |
23 | init.c:1:22: Read-only string literal storage used as initial value for | |
24 | unqualified storage: c[1] = "hullo" | |
25 | init.c:1:43: Initial value of c[2][2] is type int, expects char: 3 | |
26 | init.c:1:48: Global c[3] initialized to null value: c[3] = NULL | |
27 | init.c:4:7: Read-only string literal storage used as initial value for | |
28 | unqualified storage: st.name = "bob" | |
29 | init.c:4:23: Global st.uname initialized to null value: st.uname = NULL | |
30 | init.c:4:29: Initial value of st.y is type double, expects int: 1.2 | |
80ee600a | 31 | init.c:7:7: Initializer block for st2[0] has 3 fields, but struct { char * |
32 | name; int [] x; char * uname;, ... } has 4 fields: "bob", { 1, 2 }, NULL | |
885824d3 | 33 | init.c:8:9: Read-only string literal storage used as initial value for |
34 | unqualified storage: st2[1].name = "charly" | |
35 | init.c:8:19: Initial value of st2[1].x is type int, expects int []: 3 | |
36 | init.c:8:22: Global st2[1].uname initialized to null value: st2[1].uname = NULL | |
7534721d | 37 | init.c:10:13: Initializer block for a has 7 elements, but declared as int [10]: |
38 | 1, 2, 3, 4, 3.4, 6, 4 | |
885824d3 | 39 | init.c:10:27: Initial value of a[4] is type double, expects int: 3.4 |
40 | init.c:12:34: Initial value of aa[1][1] is type double, expects int: 3.2 | |
7534721d | 41 | init.c:14:13: Initializer block for b has 2 elements, but declared as int [10]: |
42 | { 1, 2 }, { 3, 4 } | |
885824d3 | 43 | init.c:14:15: Initializer block used for b[0] where int is expected: { 1, 2 } |
44 | init.c:14:25: Initializer block used for b[1] where int is expected: { 3, 4 } | |
45 | ||
11db3170 | 46 | Finished checking --- 17 code warnings, as expected |