DMD compiler - warning of unused variables
user1234
user1234 at 12.de
Mon Aug 16 14:44:16 UTC 2021
On Monday, 16 August 2021 at 14:14:27 UTC, DLearner wrote:
>
> Is there a compiler option that would warn that variable 'j' is
> defined but not used?
>
> Best regards
No in DMD but you can use
[D-Scanner](https://code.dlang.org/packages/dscanner) for that.
The check works reasonably as long as the variables are not
introduced by `mixin()` or metaprog.
More information about the Digitalmars-d-learn
mailing list