I often hear that when compiling C and C++ programs I should \"always enable compiler warnings\". Why is this necessary? How do I do that?
Sometimes I also hear tha
I once worked for a large (Fortune 50) company that manufactured electronic testing equipment.
The core product of my group was an MFC program that, over the years, came to generate literally hundreds of warnings. Which were ignored in almost all cases.
This is a frigging nightmare when bugs occur.
After that position, I was lucky enough to be hired as the first developer in a new startup.
I encouraged a 'no warning' policy for all builds, with compiler warning levels set to be pretty noisy.
Our practice was to use #pragma warning - push/disable/pop for code that the developer was sure was really fine, along with a log statement at the debug level, just in case.
This practice worked well for us.