A variable that is never used should be removed.
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
module fly(input clk, output reg x);
logic a = '0;
always @(posedge clk)
begin
x <= a;
end
endmodule