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
Or, in case you just forgot to initialize the variable: