forked from thejinchao/turbolink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfix_proto_cpp.txt
16 lines (16 loc) · 1.32 KB
/
fix_proto_cpp.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#if defined(_MSC_VER)
#pragma warning (disable:4018) // 'expression' : signed/unsigned mismatch
#pragma warning (disable:4065) // switch statement contains 'default' but no 'case' labels
#pragma warning (disable:4146) // unary minus operator applied to unsigned type, result still unsigned
#pragma warning (disable:4244) // 'conversion' conversion from 'type1' to 'type2', possible loss of data
#pragma warning (disable:4251) // 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'
#pragma warning (disable:4267) // 'var' : conversion from 'size_t' to 'type', possible loss of data
#pragma warning (disable:4305) // 'identifier' : truncation from 'type1' to 'type2'
#pragma warning (disable:4307) // 'operator' : integral constant overflow
#pragma warning (disable:4309) // 'conversion' : truncation of constant value
#pragma warning (disable:4334) // 'operator' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
#pragma warning (disable:4355) // 'this' : used in base member initializer list
#pragma warning (disable:4506) // no definition for inline function 'function'
#pragma warning (disable:4996) // The compiler encountered a deprecated declaration.
#pragma warning (disable:4125) // decimal digit terminates octal escape sequence
#endif