W1004 Warnings

unused-parameter

parameter declared but not used

When this occurs

Function parameter never referenced in body

Example error message

warning[W1004]: parameter 'x' is declared but never used

How to fix

Use the parameter, prefix with `_` to indicate intentionally unused, or suppress with `@Suppress(W1004)`.

Related errors