[Issue 10147] Make -w identical to -wi and deprecate it

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 30 03:27:21 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10147



--- Comment #13 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-06-30 03:27:18 PDT ---
I would _love_ it if we got rid of warnings completely, and I know that Walter
has similar feelings. I believe that we have them primarily because Walter got
bullied into it, and that's likely why dmd has such abnormal behavior with
regards to warnings. What every other compiler I've ever used does is _always_
emit warnings, and if there's a flag for making them errors, it's not normally
used.

Warnings are horrible, because they aren't things that are necessarily actually
wrong, and yet you're then forced to fix them, because it's bad practice (and
hides legitimate problems) if you leave a bunch of warnings in your code. So,
ultimately, there's not much difference between an error and a warning. We'd be
_far_ better off without them. I completely agree with Dicebot that anything
which is not _guaranteed_ to be wrong should be done with a static analysis
tool.

That being said, if we're stuck with -w and/or -wi, -w needs to fixed - either
by fixing its behavior so that it has no effect on conditional compilation or
by getting rid of it in favor of just having -wi.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list