0ad/source/dcdt/se/0ad_warning_disable.h
janwas 5bf9bca9ef fix/disable warnings.
there are too many W4 and "potentially uninitialized", so those are
disabled by 0ad_warning_disable.h.

the silly "int x = strlen" and very dangerous "int x = (void*)p" (and
vice versa) problems are fixed.

This was SVN commit r5526.
2007-12-23 12:18:57 +00:00

7 lines
256 B
C

#pragma warning(push, 3)
// it's way too much work to check all of these (runtime invariants may
// ensure the code is safe but cannot automatically be proved by the
// compiler)
#pragma warning(disable:4701) // "potentially uninitialized variable"