[Box Backup-commit] COMMIT r1770 - box/chris/merge/lib/win32
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Thu Jul 26 23:04:53 BST 2007
Author: chris
Date: 2007-07-26 23:04:53 +0100 (Thu, 26 Jul 2007)
New Revision: 1770
Modified:
box/chris/merge/lib/win32/emu.h
Log:
Disable some warnings under MSVC to reduce build noise, thanks Gary!
(refs #3, merges [1676])
Modified: box/chris/merge/lib/win32/emu.h
===================================================================
--- box/chris/merge/lib/win32/emu.h 2007-07-26 22:04:29 UTC (rev 1769)
+++ box/chris/merge/lib/win32/emu.h 2007-07-26 22:04:53 UTC (rev 1770)
@@ -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
More information about the Boxbackup-commit
mailing list