Reports the variable values that are never used after being assigned. This can happen in the following cases:

Example:


  class C {
    int field;

    void foo() {
      field = unused_value;
    }

    void bar() {
      use(field);
      foo();
    }
  };

Use the checkbox below to have this inspection ignore variable initializers.