Cleanup initialize_object_slots, remove unused GetHashCode (ghc) handling. (#17834)
[mono-project.git] / msvc / msvc-disabled-warnings.h
blob15fed93b2885fdea3e855453b84eb8c1ce300d23
1 #pragma once
3 #ifdef _MSC_VER
5 // FIXME This is all questionable but the logs are flooded and nothing else is fixing them.
6 #define _CRT_SECURE_NO_WARNINGS 1
7 #pragma warning(disable:4013) // function undefined; assuming extern returning int
8 #pragma warning(disable:4018) // signed/unsigned mismatch
9 #pragma warning(disable:4022) // call and prototype disagree
10 #pragma warning(disable:4047) // call and prototype disagree
11 #pragma warning(disable:4090) // const problem
12 #pragma warning(disable:4098) // void return returns a value
13 #pragma warning(disable:4101) // unreferenced local variable
14 #pragma warning(disable:4113) // call and prototype disagree
15 #pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned
16 #pragma warning(disable:4172) // returning address of local variable or temporary
17 #pragma warning(disable:4189) // local variable is initialized but not referenced
18 #pragma warning(disable:4197) // top-level volatile in cast is ignored
19 #pragma warning(disable:4244) // integer conversion, possible loss of data
20 #pragma warning(disable:4245) // signed/unsigned mismatch
21 #pragma warning(disable:4267) // integer conversion, possible loss of data
22 #pragma warning(disable:4273) // inconsistent dll linkage
23 #pragma warning(disable:4293) // shift count negative or too big, undefined behavior
24 #pragma warning(disable:4305) // truncation from 'double' to 'float'
25 #pragma warning(disable:4312) // 'type cast': conversion from 'MonoNativeThreadId' to 'gpointer' of greater size
26 #pragma warning(disable:4389) // signed/unsigned mismatch
27 #pragma warning(disable:4456) // declaration of 'j' hides previous local declaration
28 #pragma warning(disable:4457) // declaration of 'text' hides function parameter
29 #pragma warning(disable:4702) // unreachable code
30 #pragma warning(disable:4706) // assignment within conditional expression
31 #pragma warning(disable:4715) // 'keyword' not all control paths return a value
32 #pragma warning(disable:4996) // deprecated function GetVersion GetVersionExW fopen inet_addr mktemp sprintf strcat strcpy strtok unlink etc.
34 #endif