This seems like what could be a common cause of bugs

Steven Schveighoffer schveiguy at yahoo.com
Mon Jul 11 08:50:19 PDT 2011


On Mon, 11 Jul 2011 11:45:47 -0400, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

> On Monday 11 July 2011 08:17:50 Steven Schveighoffer wrote:

>>
>> Hm... I didn't know about that switch, I thought warnings were enabled
>> with -w and that made them errors.
>>
>> I suppose you could stick this in there.
>
> By default, warnings are completely disabled. -w enables them and makes  
> the
> errors. So, it's more like telling it to add more errors than to enable
> warnings. -wi enables them, but it leaves them as warnings. They're then
> "informational" (basically, -wi makes warnings work like they do with  
> pretty
> much every other compiler on the planet). IIRC, people kept bugging  
> Walter
> about how warnings work with dmd, so he added -wi.

eh... then I retract my statement.  I thought the set of -wi warnings  
could be different than the set of -w errors.

This is not always an error, I don't think you should need a cast for  
things like this.

-Steve


More information about the Digitalmars-d-learn mailing list