Changeset - r19827:66a8fc92657c
[Not reviewed]
master
0 1 0
michi_cc - 12 years ago 2012-12-03 22:08:03
michi_cc@openttd.org
(svn r24782) -Codechange: [Win32] Disable MSVC warning about using 'this' in a base member initializer list as we don't use it in any problematic way.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/stdafx.h
Show inline comments
 
@@ -159,24 +159,25 @@
 
	#define NTDDI_VERSION NTDDI_WIN2K // Windows 2000
 
	#define _WIN32_WINNT 0x0500       // Windows 2000
 
	#define _WIN32_WINDOWS 0x400      // Windows 95
 
	#if !defined(WINCE)
 
		#define WINVER 0x0400     // Windows NT 4.0 / Windows 95
 
	#endif
 
	#define _WIN32_IE_ 0x0401         // 4.01 (win98 and NT4SP5+)
 
	#define NOMINMAX                // Disable min/max macros in windows.h.
 

	
 
	#pragma warning(disable: 4244)  // 'conversion' conversion from 'type1' to 'type2', possible loss of data
 
	#pragma warning(disable: 4761)  // integral size mismatch in argument : conversion supplied
 
	#pragma warning(disable: 4200)  // nonstandard extension used : zero-sized array in struct/union
 
	#pragma warning(disable: 4355)  // 'this' : used in base member initializer list
 

	
 
	#if (_MSC_VER < 1400)                   // MSVC 2005 safety checks
 
		#error "Only MSVC 2005 or higher are supported. MSVC 2003 and earlier are not! Upgrade your compiler."
 
	#endif /* (_MSC_VER < 1400) */
 
	#pragma warning(disable: 4291)   // no matching operator delete found; memory will not be freed if initialization throws an exception (reason: our overloaded functions never throw an exception)
 
	#pragma warning(disable: 4996)   // 'function': 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
 
	#pragma warning(disable: 6326)   // code analyzer: potential comparison of a constant with another constant
 
	#pragma warning(disable: 6031)   // code analyzer: Return value ignored: 'ReadFile'
 
	#pragma warning(disable: 6255)   // code analyzer: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead
0 comments (0 inline, 0 general)