[Box Backup-commit] COMMIT r1676 - box/chris/general/lib/win32
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Fri, 25 May 2007 19:41:43 +0100
Author: chris
Date: 2007-05-25 19:41:43 +0100 (Fri, 25 May 2007)
New Revision: 1676
Modified:
box/chris/general/lib/win32/emu.h
Log:
Disable some warnings under MSVC to reduce build noise, thanks Gary!
Modified: box/chris/general/lib/win32/emu.h
===================================================================
--- box/chris/general/lib/win32/emu.h 2007-05-25 18:41:15 UTC (rev 1675)
+++ box/chris/general/lib/win32/emu.h 2007-05-25 18:41:43 UTC (rev 1676)
@@ -385,4 +385,16 @@
// 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