Compiler doesn't warn for declared but unused variables

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sat Nov 28 00:55:08 UTC 2026


On 28/11/2026 8:51 AM, Kapendev wrote:
> No idea what linters exist for D, but they can do a better job than a 
> compiler for things like this. Scope the warnings, change how strict 
> they need to be, ...

https://github.com/dlang-community/D-Scanner/tree/master#implemented-checks

- Unused variables.


More information about the Digitalmars-d-learn mailing list