1 |
* Sergei Trofimovich <slyfox@g.o> schrieb: |
2 |
|
3 |
> I suggest you to try latest available dev-lang/icc (11.1.072). |
4 |
> This thing is really paranoid: |
5 |
> |
6 |
> remark #2259: non-pointer conversion from "int" to "unsigned char" may lose significant bits |
7 |
> unsigned char BlinkerPhase = 0; |
8 |
> ... |
9 |
> BlinkerPhase = (BlinkerPhase + 1) & 3; |
10 |
|
11 |
In this case, the compiler is wrong: it should convert to |
12 |
int and back to char here ;-p |
13 |
|
14 |
> remark #981: operands are evaluated in unspecified order (tons of them) |
15 |
> return strcmp( left.c_str(), right.c_str() ) > 0; |
16 |
|
17 |
I'm not sure if this really qualifies an warning, since - AFAIK - |
18 |
C spec never said, that there is an evaluation order for |
19 |
function parameters. |
20 |
|
21 |
|
22 |
cu |
23 |
-- |
24 |
--------------------------------------------------------------------- |
25 |
Enrico Weigelt == metux IT service - http://www.metux.de/ |
26 |
--------------------------------------------------------------------- |
27 |
Please visit the OpenSource QM Taskforce: |
28 |
http://wiki.metux.de/public/OpenSource_QM_Taskforce |
29 |
Patches / Fixes for a lot dozens of packages in dozens of versions: |
30 |
http://patches.metux.de/ |
31 |
--------------------------------------------------------------------- |