Why is this an issue?

A variable that is never used should be removed.

How to fix it

Code examples

Noncompliant code example

module fly(input clk, output reg x);
  logic a = '0;

  int b; // Noncompliant: 'b' is never set nor read

  int c; // Noncompliant: 'c' is set but never read
  initial c = 42;

  always @(posedge clk)
  begin
    x <= a;
  end
endmodule

Compliant solution

module fly(input clk, output reg x);
  logic a = '0;

  always @(posedge clk)
  begin
    x <= a;
  end
endmodule