A common practice in software engineering is to turn on all the warnings in your compiler, giving it a chance to warn you about unsafe practices, and then to turn on an option that turns warnings into errors so you can’t get code to compile while it is still triggering warnings. This helps avoid dodgy coding practices, though it occasionally necessitates an override when you know damn well what you’re doing and the compiler can’t figure it out. Of course, this requires that the underlying libraries on top of which you’re building your code don’t trigger warnings.
Releasing a compiler where even Hello, world! can’t pass that gauntlet? That takes talent.
| LOATHE |
| Their developers are smoking advanced experimental prototype monkey crack again. |

no subject
Date: 2009-07-07 09:08 pm (UTC)I think we had most warnings on as errors for Virtual PC when I worked there. Definitely not for Office though, since that would have added a billion errors.
(Edited to add: Oh I see, straight C. Yeah, I bet that doesn't get tested much by internal teams at MS.)
no subject
Date: 2009-07-07 09:30 pm (UTC)no subject
Date: 2009-07-07 09:40 pm (UTC)In no way am I disagreeing with your basic premise -- default programs SHOULD compile without errors or warnings. If I had to wager a guess, it is C (rather than C++) gets almost no effort applied to it. Hell, C++ took a very distant second to all the .NET languages in both VS 2005 and VS 2008.