Unused variables and bugs
via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 22 20:50:13 PDT 2014
On Saturday, 23 August 2014 at 02:48:15 UTC, ketmar via
Digitalmars-d wrote:
> don't declare unused variables. really, this is extremely easy.
> my 15+
> years of expirience in writing projects of different scale
What about:
- versioning
- debugging (commenting out debugging code)
- virtual functions
- future-proof function signatures
Of course the common way to deal with it in C is to tell the
compiler that it is intentional by casting to void:
(void) argc;
(void) argv;
More information about the Digitalmars-d
mailing list