W1001 Warnings

unused-variable

variable declared but not used

When this occurs

Variable declared but never referenced

Example error message

warning[W1001]: variable 'x' is declared but never used

How to fix

Use the variable, remove it, or suppress with `@Suppress(W1001)`.

Related errors