Fixing More Warnings in DMD?

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Thu May 29 13:33:58 PDT 2014


On Thursday, 29 May 2014 at 09:35:26 UTC, bearophile wrote:
>> Some of those warnings are not generated by D compiler (like 
>> unused variables and labels, unused arguments, signed/unsigned 
>> comparisons, etc), so better to catch and fix them before 
>> porting the code to D.
>
> In D I'd like optional warnings for unused 
> variables/labels/arguments/last assignments, and for 
> signed-unsigned comparisons. Such basic things are not a job 
> for Dscanner.
>
> Bye,
> bearophile

unused variables are job for dscanner
signed-unsigned comparison should be an error, not warning


More information about the Digitalmars-d mailing list