diff options
| author | Petr Mrázek | 2012-03-13 17:32:44 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-03-13 17:32:44 +0100 |
| commit | 6dde2373d7c290f238b2d6a4c7320a2b39ad444f (patch) | |
| tree | 44b068804e0a7a8d5dad3db3e943415f5a19680b /depends/protobuf | |
| parent | 9079ffa4ff24d8dfe27a2268ab69ccf0483c42d4 (diff) | |
| download | dfhack-6dde2373d7c290f238b2d6a4c7320a2b39ad444f.tar.gz dfhack-6dde2373d7c290f238b2d6a4c7320a2b39ad444f.tar.bz2 dfhack-6dde2373d7c290f238b2d6a4c7320a2b39ad444f.tar.xz | |
Make MSVC shut up when compiling protobuf.
Disabled planty of common harmless warnings.
Diffstat (limited to 'depends/protobuf')
| -rw-r--r-- | depends/protobuf/google/protobuf/stubs/common.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/depends/protobuf/google/protobuf/stubs/common.h b/depends/protobuf/google/protobuf/stubs/common.h index 83297357..60187f28 100644 --- a/depends/protobuf/google/protobuf/stubs/common.h +++ b/depends/protobuf/google/protobuf/stubs/common.h @@ -48,6 +48,22 @@ #include <stdint.h> #endif +// make MSVC shut up about some things +#ifdef _MSC_VER + // don't spew nonsense! + #pragma warning( disable: 4251 ) + // POSIX is OK, stop complaining. + #pragma warning( disable: 4996 ) + // using 'this' in initializer lists... + #pragma warning( disable: 4355 ) + // signed/unsigned mismatch + #pragma warning( disable: 4018 ) + // possible loss of data from assignments between different numeric types + #pragma warning( disable: 4244 ) + // forcing value to 'bool' + #pragma warning( disable: 4800 ) +#endif + #if defined(_MSC_VER) && defined(_CPPUNWIND) #define PROTOBUF_USE_EXCEPTIONS #elif defined(__EXCEPTIONS) |
