Whenever I compile SQLite with Visual C++ 9 I get hundreds of warnings, such as
- potentially uninitialized variables
- conversion from wider integer types to narrower integer types
- signed/unsigned integers mismatches.
I'm not alone - there's an SQLite FAQ question specifically about that. The answer to that question says that
- those warnings don't arise in GCC that SQLite developers use
- warnings are not that of a problem since the team tests code thorougly
Of course I can't argue against those points, but...
- I don't use GCC - I use VC++ and VC++ does show warnings
- they tested the code compiled with GCC and I don't use GCC, so there might be some implementation-defined difference or something like different levels of C standard compliance between GCC and VC++ that will subtly break the code with severe consequences.
That's why I don't like the idea of simply ignoring all warnings.
So how do I deal with warnings VC++ displays when compiling SQLite?