When trying to compile my prgram with:
gcc -pedantic -Wall -ansi
I get the warning: warning: statement with no effect
Referring to this line:
for(currentDirection; currentDirection <= endDirection; currentDirection++)
Can anyone help me with this?
currentDirection;
does nothing.
Replace your line with
for(; currentDirection <= endDirection; currentDirection++)
Or, in case you just forgot to initialize the variable:
for(currentDirection = 0; currentDirection <= endDirection; currentDirection++)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With