diff options
author | KUDr <kudr@openttd.org> | 2007-07-03 23:08:51 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-07-03 23:08:51 +0000 |
commit | 7dc5d114483dc3f1f9ebe7e7df98fdfe01228d13 (patch) | |
tree | 8d823924c48208ced263786be52c5a0ded5b17e8 /src | |
parent | 6878ca02134fb18ef2f263ea844eefc49468759d (diff) | |
download | openttd-7dc5d114483dc3f1f9ebe7e7df98fdfe01228d13.tar.xz |
(svn r10421) -Fix [MSVC]: suppress some code analyzer warnings for VC8
Diffstat (limited to 'src')
-rw-r--r-- | src/stdafx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index 12c4fe7ab..b17d54712 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -153,6 +153,8 @@ # if _MSC_VER >= 1400 // MSVC 2005 safety checks # pragma warning(disable: 4996) // 'strdup' was declared deprecated # define _CRT_SECURE_NO_DEPRECATE // all deprecated 'unsafe string functions +# pragma warning(disable: 6308) // code analyzer: 'realloc' might return null pointer: assigning null pointer to 't_ptr', which is passed as an argument to 'realloc', will cause the original memory block to be leaked +# pragma warning(disable: 6011) // code analyzer: Dereferencing NULL pointer 'pfGetAddrInfo': Lines: 995, 996, 998, 999, 1001 # else /* _MSC_VER >= 1400 ( <1400 for MSVC2003) */ # pragma warning(disable: 4288) // nonstandard extension used : 'y' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope # pragma warning(disable: 4292) // compiler limit : terminating debug information emission for enum 'StringIdEnum' with member 'STR_801D_COAL_CAR' |