summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-02-09 14:01:13 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2021-02-10 11:30:32 +0100
commit86cfb3821150d24cd60e5501720779696379643a (patch)
treeb84026063826f4d21e4c9cfe0a0b3f9b5a255c3b /src/Globals.h
parentCompositeChat: use variants (diff)
downloadcuberite-86cfb3821150d24cd60e5501720779696379643a.tar
cuberite-86cfb3821150d24cd60e5501720779696379643a.tar.gz
cuberite-86cfb3821150d24cd60e5501720779696379643a.tar.bz2
cuberite-86cfb3821150d24cd60e5501720779696379643a.tar.lz
cuberite-86cfb3821150d24cd60e5501720779696379643a.tar.xz
cuberite-86cfb3821150d24cd60e5501720779696379643a.tar.zst
cuberite-86cfb3821150d24cd60e5501720779696379643a.zip
Diffstat (limited to 'src/Globals.h')
-rw-r--r--src/Globals.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/Globals.h b/src/Globals.h
index bb512d89d..c081c5998 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -16,32 +16,6 @@
// Compiler-dependent stuff:
#if defined(_MSC_VER)
- // Disable some warnings that we don't care about:
- #pragma warning(disable:4100) // Unreferenced formal parameter
-
- // Useful warnings from warning level 4:
- #pragma warning(3 : 4189) // Local variable is initialized but not referenced
- #pragma warning(3 : 4245) // Conversion from 'type1' to 'type2', signed / unsigned mismatch
- #pragma warning(3 : 4310) // Cast truncates constant value
- #pragma warning(3 : 4389) // Signed / unsigned mismatch
- #pragma warning(3 : 4505) // Unreferenced local function has been removed
- #pragma warning(3 : 4701) // Potentially unitialized local variable used
- #pragma warning(3 : 4702) // Unreachable code
- #pragma warning(3 : 4706) // Assignment within conditional expression
-
- // 2014-10-23 xoft: Disabled this because the new C++11 headers in MSVC produce tons of these warnings uselessly
- // #pragma warning(3 : 4127) // Conditional expression is constant
-
- // Disabling this warning, because we know what we're doing when we're doing this:
- #pragma warning(disable: 4355) // 'this' used in initializer list
-
- // Disabled because it's useless:
- #pragma warning(disable: 4512) // 'class': assignment operator could not be generated - reported for each class that has a reference-type member
- #pragma warning(disable: 4351) // new behavior: elements of array 'member' will be default initialized
-
- // 2014_01_06 xoft: Disabled this warning because MSVC is stupid and reports it in obviously wrong places
- // #pragma warning(3 : 4244) // Conversion from 'type1' to 'type2', possible loss of data
-
// Use non-standard defines in <cmath>
#define _USE_MATH_DEFINES