Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Krell <jay.krell@cornell.edu>2018-06-14 17:33:16 +0300
committerLudovic Henry <luhenry@microsoft.com>2018-06-14 17:33:16 +0300
commitc4d056928da370036e5cbc4b51f0b87559687ef1 (patch)
treeca3b3f8b957579bc644f8d787592d7f46eb7a475 /winconfig.h
parent15a40b60b9911916be97d110ffa1d5ef56b42ace (diff)
Quash countless warnings until/unless other work is done to address them. (#9115)
Diffstat (limited to 'winconfig.h')
-rw-r--r--winconfig.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/winconfig.h b/winconfig.h
index 65b7e7e5507..254de67c8a2 100644
--- a/winconfig.h
+++ b/winconfig.h
@@ -691,3 +691,33 @@
#define MONO_CORLIB_VERSION #MONO_CORLIB_VERSION#
#endif
+
+#ifdef _MSC_VER
+// FIXME This is all questionable but the logs are flooded and nothing else is fixing them.
+#define _CRT_SECURE_NO_WARNINGS 1
+#pragma warning(disable:4013) // function undefined; assuming extern returning int
+#pragma warning(disable:4018) // signed/unsigned mismatch
+#pragma warning(disable:4022) // call and prototype disagree
+#pragma warning(disable:4047) // call and prototype disagree
+#pragma warning(disable:4090) // const problem
+#pragma warning(disable:4098) // void return returns a value
+#pragma warning(disable:4101) // unreferenced local variable
+#pragma warning(disable:4113) // call and prototype disagree
+#pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned
+#pragma warning(disable:4172) // returning address of local variable or temporary
+#pragma warning(disable:4189) // local variable is initialized but not referenced
+#pragma warning(disable:4197) // top-level volatile in cast is ignored
+#pragma warning(disable:4244) // integer conversion, possible loss of data
+#pragma warning(disable:4245) // signed/unsigned mismatch
+#pragma warning(disable:4267) // integer conversion, possible loss of data
+#pragma warning(disable:4273) // inconsistent dll linkage
+#pragma warning(disable:4293) // shift count negative or too big, undefined behavior
+#pragma warning(disable:4305) // truncation from 'double' to 'float'
+#pragma warning(disable:4389) // signed/unsigned mismatch
+#pragma warning(disable:4456) // declaration of 'j' hides previous local declaration
+#pragma warning(disable:4457) // declaration of 'text' hides function parameter
+#pragma warning(disable:4702) // unreachable code
+#pragma warning(disable:4706) // assignment within conditional expression
+#pragma warning(disable:4715) // 'keyword' not all control paths return a value
+#pragma warning(disable:4996) // deprecated function GetVersion GetVersionExW fopen inet_addr mktemp sprintf strcat strcpy strtok unlink etc.
+#endif