diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-14 15:45:24 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-14 15:45:24 +0100 |
commit | 0ad835d1cf50ebfdc5789364a52559e7f5d6e822 (patch) | |
tree | 12c974bc5baf58394c0f61bfb35e0483ac29de84 | |
parent | Disable global constructors and exit-time destructors warnings (diff) | |
parent | Merge pull request #805 from worktycho/undef (diff) | |
download | cuberite-0ad835d1cf50ebfdc5789364a52559e7f5d6e822.tar cuberite-0ad835d1cf50ebfdc5789364a52559e7f5d6e822.tar.gz cuberite-0ad835d1cf50ebfdc5789364a52559e7f5d6e822.tar.bz2 cuberite-0ad835d1cf50ebfdc5789364a52559e7f5d6e822.tar.lz cuberite-0ad835d1cf50ebfdc5789364a52559e7f5d6e822.tar.xz cuberite-0ad835d1cf50ebfdc5789364a52559e7f5d6e822.tar.zst cuberite-0ad835d1cf50ebfdc5789364a52559e7f5d6e822.zip |
Diffstat (limited to '')
-rw-r--r-- | SetFlags.cmake | 2 | ||||
-rw-r--r-- | src/BoundingBox.cpp | 2 | ||||
-rw-r--r-- | src/CompositeChat.cpp | 2 | ||||
-rw-r--r-- | src/Noise.cpp | 8 |
4 files changed, 3 insertions, 11 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake index 05f2b90c0..89bf35668 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -198,7 +198,7 @@ macro(set_exe_flags) add_flags_cxx("-Wno-error=covered-switch-default -Wno-error=shadow") add_flags_cxx("-Wno-exit-time-destructors -Wno-error=missing-variable-declarations") add_flags_cxx("-Wno-global-constructors -Wno-implicit-fallthrough") - add_flags_cxx("-Wno-missing-noreturn -Wno-error=unreachable-code -Wno-error=undef") + add_flags_cxx("-Wno-missing-noreturn -Wno-error=unreachable-code") endif() endif() diff --git a/src/BoundingBox.cpp b/src/BoundingBox.cpp index aab51c539..482f9923f 100644 --- a/src/BoundingBox.cpp +++ b/src/BoundingBox.cpp @@ -10,7 +10,7 @@ -#if SELF_TEST +#ifdef SELF_TEST /** A simple self-test that is executed on program start, used to verify bbox functionality */ static class SelfTest_BoundingBox diff --git a/src/CompositeChat.cpp b/src/CompositeChat.cpp index 19ed30d78..a917ee70f 100644 --- a/src/CompositeChat.cpp +++ b/src/CompositeChat.cpp @@ -10,7 +10,7 @@ -#if SELF_TEST +#ifdef SELF_TEST /** A simple self-test that verifies that the composite chat parser is working properly. */ class SelfTest_CompositeChat diff --git a/src/Noise.cpp b/src/Noise.cpp index 5f23a47f9..a97ea70c6 100644 --- a/src/Noise.cpp +++ b/src/Noise.cpp @@ -3,14 +3,6 @@ #include "Noise.h" - - - - -#if NOISE_USE_SSE - #include <smmintrin.h> //_mm_mul_epi32 -#endif - #define FAST_FLOOR(x) (((x) < 0) ? (((int)x) - 1) : ((int)x)) |