digitalmars.D.bugs - [Issue 4482] New: Missing warnings when not compiling with -w
- d-bugmail puremagic.com (27/27) Jul 18 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4482
- d-bugmail puremagic.com (13/13) Jun 15 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4482
http://d.puremagic.com/issues/show_bug.cgi?id=4482 Summary: Missing warnings when not compiling with -w Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: jmdavisProg gmail.com 00:54:36 PDT --- If I have series of statements such as throw new Exception("it broke"); writeln("unreachable"); and compile with -w, then naturally, this won't compile because the second statement is unreachable. That's good. However, if you do not compile with -w, no warning is printed. Shouldn't all warnings be printed regardless and -w simply choose to treat them as errors? As it is, if you're foolish enough not to compile with -w, you can easily miss stuff that's obviously wrong. I can understand the user choosing not to treat a warning as an error, but I would expect it to still be reported, and it's not. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 18 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4482 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |INVALID This is not how it's defined to work in D. Warnings will only be printed if using the -w or -wi compiler switches. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 15 2011