processing / processing-experimental

Experimental Mode for the PDE
72 stars 25 forks source link

Var not used #74

Closed knupel closed 10 years ago

knupel commented 10 years ago

Sometime PDEX indicate a local var is not used, but this one is used in the loop just behind like "whichOne" in the screenshot capture decran 2014-06-27 a 11 27 46

Manindra29 commented 10 years ago

Can you share the code of the complete method?

knupel commented 10 years ago

whaou it's huge, it's from my project. I try to reproduce this week-end in smaller sketch.

Manindra29 commented 10 years ago

Not the whole sketch, but can you share the code of the lookAndDisplayInfo() method? I think you're just assigning some value to the variable but not putting it to any real use.

knupel commented 10 years ago

ok voilà : I understood you are right I don't use this one after. May be it's possible to mark the second one too ?

void setup() {
}

void truc() {
  int h ;
  for(int i = 0 ; i < 3 ; i++) {
    int id = 1 ;
    h = id ;
  }
}