Bug? Unused variable warning

Discussion in 'Bugs & wishlist' started by kohle, Jun 9, 2015.

  1. kohle

    kohle Active Member Licensed User

    Hi,

    please see the screenshot. I declared a variable and some lines after ,
    I use the variable.

    For me the variable is used. The warning says unused.
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    This is not a bug. The variable is only assigned.
     
  3. kohle

    kohle Active Member Licensed User

    I dont understand your answer. But I made a little change in the code.

    See next screenshot. I assigned it at declaration and 2 lines after I assigned it again

    Still getting the warning. I saved the project.
     

    Attached Files:

  4. kohle

    kohle Active Member Licensed User

    I think I know what you mean.
    I dont use the variable for something, like adding to a map,list...

    I think "unused" can be misunderstood.
     
Loading...