How DMD's -w *Prevents* Me From Seeing My Warnings

Rainer Deyke rainerd at eldwood.com
Fri Feb 12 15:43:00 PST 2010


Nick Sabalausky wrote:
> 3. Now I have to go modify my build script and recompile just to get the 
> output files that DMD arbitrarily refused to give me before (and then go 
> edit my built script again to turn them back on). Which is not impossible, 
> but it's all for...what benefit exactly?

Or modify your build script to always compile twice, once with warnings
and once without.  It's ugly and stupid, but it's also simple to do and
it works.

> I mean, even if there were a 
> legitimate reason for forcing any warnings to suppress output files (and I 
> very much dispute that there is), the fact I can get the same damn output 
> files anyway by shutting the warnings off and recompiling renders the whole 
> "feature" pointless. You may as well just write the output files anyway and 
> save people the bother of working around it.

That would be ideal, of course.


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list