summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-07-26 22:04:53 +0000
committerChris Wilson <chris+github@qwirx.com>2007-07-26 22:04:53 +0000
commit4a3627d5b883c0f66c9f2b770a427c18df51203f (patch)
treeb1cf402b7c1ebddf8a3db671e52f811e72f9566a
parent2e128f8778af9763eb4cd919ea80264baa2b3a6d (diff)
Disable some warnings under MSVC to reduce build noise, thanks Gary!
(refs #3, merges [1676])
-rw-r--r--lib/win32/emu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/win32/emu.h b/lib/win32/emu.h
index ec6c0918..1f078c14 100644
--- a/lib/win32/emu.h
+++ b/lib/win32/emu.h
@@ -385,4 +385,16 @@ std::string GetErrorMessage(DWORD errorCode);
// relatively recent C runtime lib
int console_read(char* pBuffer, size_t BufferSize);
+#ifdef _MSC_VER
+ /* disable certain compiler warnings to be able to actually see the show-stopper ones */
+ #pragma warning(disable:4101) // unreferenced local variable
+ #pragma warning(disable:4244) // conversion, possible loss of data
+ #pragma warning(disable:4267) // conversion, possible loss of data
+ #pragma warning(disable:4311) // pointer truncation
+ #pragma warning(disable:4700) // uninitialized local variable used (hmmmmm...)
+ #pragma warning(disable:4805) // unsafe mix of type and type 'bool' in operation
+ #pragma warning(disable:4800) // forcing value to bool 'true' or 'false' (performance warning)
+ #pragma warning(disable:4996) // POSIX name for this item is deprecated
+#endif // _MSC_VER
+
#endif // !EMU_INCLUDE && WIN32