MQL4 - Compilation Warning: expression has no effect

 

The code works fine, but I get a compilation warning: expression has no effect.

int j,bars=10;
bool curr=false;
.
.
.
for(curr?j=0:j=1; curr?j<bars:j<=bars; j++)
.
.
.
 
does this have an answer? or it's a bug?
 
z3d:

The code works fine, but I get a compilation warning: expression has no effect.

for(j=curr?0:1; curr?j<bars:j<=bars; j++)
 
angevoyageur:
Thumb up ;)