]>
Commit | Line | Data |
---|---|---|
885824d3 | 1 | static const dummy[] = |
2 | { | |
3 | 0x0, | |
4 | 0x1, | |
5 | 0x1, | |
6 | 0x2 | |
7 | }; | |
8 | ||
9 | ||
10 | static const short int dummy2[] = | |
11 | { | |
12 | 0x0, | |
13 | 0x1, | |
14 | 0x1, | |
15 | 0x2 | |
16 | }; | |
17 | ||
18 | static const dummy3[] = | |
19 | { | |
20 | 0, | |
21 | 1, | |
22 | 1, | |
23 | 2 | |
24 | }; | |
25 | ||
26 | /* What this means is that there appear to be some problems with lclint | |
27 | 1) doesn't detect the missing typing in the first and last examples | |
28 | - gcc 2.7.2.f.1 doesn't either it compiles this code without a comment | |
29 | 2) changing the declaration from 0x0 to 0 has no effect(I expected this), | |
30 | but changing 0x1 & 0x2 to 1 & 2 did and I don't have any explanation. | |
31 | ||
32 | */ | |
33 | ||
34 | ||
35 |