]>
Commit | Line | Data |
---|---|---|
7534721d | 1 | |
2 | arrayinit.c:1:12: Initializer block for x has 4 elements, but declared as int | |
3 | [3]: 1, 2, 3, 4 | |
4 | arrayinit.c:2:12: Initializer block for a has 2 elements, but declared as int | |
5 | [3]: 1, 2 | |
6 | arrayinit.c:3:16: Initializer block for aa has 2 elements, but declared as int | |
7 | [3] [3]: { 1, 2, 3 }, { 4, 5 } | |
8 | arrayinit.c:4:18: Initializer block for aa[1] has 2 elements, but declared as | |
9 | int [3]: 4, 5 | |
393e573f | 10 | arrayinit.c:10:15: String literal with 4 characters is assigned to char [3] (no |
7534721d | 11 | room for null terminator): "abc" |
393e573f | 12 | arrayinit.c:11:15: String literal with 5 characters (counting null terminator) |
7534721d | 13 | is assigned to char [3] (insufficient storage available): "abcd" |
393e573f | 14 | arrayinit.c:14:40: String literal with 4 characters is assigned to char [3] (no |
7534721d | 15 | room for null terminator): "def" |
393e573f | 16 | arrayinit.c:14:47: String literal with 6 characters (counting null terminator) |
7534721d | 17 | is assigned to char [3] (insufficient storage available): "gasdf" |
393e573f | 18 | arrayinit.c:17:22: Initializer block for a3[1] has 3 elements, but declared as |
19 | int [2]: 3, 4, 5 | |
7534721d | 20 | |
393e573f | 21 | Finished checking --- 9 code warnings, as expected |