Silence silly MSVC warning c4146
authorMarco Costalba <mcostalba@gmail.com>
Sat, 29 Jan 2011 13:10:05 +0000 (14:10 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 29 Jan 2011 13:10:05 +0000 (14:10 +0100)
Warning C4146: unary minus operator applied to
unsigned type, result still unsigned.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

src/types.h

index 70b1b81..76ef4cd 100644 (file)
@@ -27,6 +27,7 @@
 // Disable some silly and noisy warning from MSVC compiler
 #pragma warning(disable: 4800) // Forcing value to bool 'true' or 'false'
 #pragma warning(disable: 4127) // Conditional expression is constant
+#pragma warning(disable: 4146) // Unary minus operator applied to unsigned type
 
 // MSVC does not support <inttypes.h>
 typedef   signed __int8    int8_t;