[Bug c/42795] false statement has no effect message

2010-01-18 Thread jrt at worldlinc dot net
--- Comment #1 from jrt at worldlinc dot net 2010-01-19 01:22 --- I used inaccurate phrasing. I should have said that The compiler flags used in compiling THE FOLLOWING were -O3 -funroll-loops. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42795

[Bug c/42795] false statement has no effect message

2010-01-18 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-01-19 02:14 --- gnuchess.c:1021: warning: statement with no effect This warning is correct as: i; has no effect. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/42795] false statement has no effect message

2010-01-18 Thread jrt at worldlinc dot net
--- Comment #3 from jrt at worldlinc dot net 2010-01-19 02:58 --- So setting a variable as the coder desires is no effect? Some would disagree. A statement that really would not have an effect would be: if (theworldis notenough); The comparison indicated here perhaps is performed,

[Bug c/42795] false statement has no effect message

2010-01-18 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-01-19 03:01 --- (In reply to comment #3) So setting a variable as the coder desires is no effect? Some would disagree. A statement that really would not have an effect would be: if (theworldis notenough); No that is not

[Bug c/42795] false statement has no effect message

2010-01-18 Thread jrt at worldlinc dot net
--- Comment #5 from jrt at worldlinc dot net 2010-01-19 03:15 --- Ahhh, i see. It appears that i is not assigned at the start of the loop. I assigned it just before the loop, so the loop starts at the correct value. I tried doing the assignment with an otherwise useless variable, don't