I downloaded and installed the Torque 2D engine, called Torque Game Builder. I’ve been a Torque owner since 2005 and looking to re-acquaint myself with the current version of the engine.
I opened the solution in Visual Studio 2005 and compiled the project. Worked flawless and no errors, not even warnings. The big “ouch!” came when i looked in the project properties and saw that the Warning Level was set to 1! Argh! Even pushing it to 2 gives you a crapload of warnings, Level 3 and 4 are unacceptable.
Now you might argue – they are just warnings, so why care? Simple: because they can point you towards real bugs that hide behind the warnings. The compiler is your friend, so treat him as one and don’t just tell him to shut up! Besides it’s really not that hard to write warning-free code.
On the other hand … it’s a tried and true engine, very stable and mature. The developers are supposedly used to working with that warning level and most of the warnings are typically irrelevant if you are a good coder you don’t need to be told that assigning a double to float causes possibly loss of data. You just know. But then, if someone decides to add to the engine – potential ouch. Potential biggy ouch!
Well we don’t have “Warning Level 4” in combination with “Consider Warnings as Errors” as a coding standard without reason. I’m not sure if i can tell you those but i think it’s pretty much summed up by this C++ Coding Standard.