summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-05-09 01:25:38 +0200
committerworktycho <work.tycho@gmail.com>2015-05-09 01:25:38 +0200
commit523db778d97b4bfcb14c3ccdc9bfb78bd7f99f65 (patch)
treef6bb9e63e4d80abcfb8ec8e3fd8a63101e59507a /src
parentMerge pull request #1971 from mc-server/worktycho-patch-1 (diff)
parentFixed compiler warning overrides in Vector3.h (diff)
downloadcuberite-523db778d97b4bfcb14c3ccdc9bfb78bd7f99f65.tar
cuberite-523db778d97b4bfcb14c3ccdc9bfb78bd7f99f65.tar.gz
cuberite-523db778d97b4bfcb14c3ccdc9bfb78bd7f99f65.tar.bz2
cuberite-523db778d97b4bfcb14c3ccdc9bfb78bd7f99f65.tar.lz
cuberite-523db778d97b4bfcb14c3ccdc9bfb78bd7f99f65.tar.xz
cuberite-523db778d97b4bfcb14c3ccdc9bfb78bd7f99f65.tar.zst
cuberite-523db778d97b4bfcb14c3ccdc9bfb78bd7f99f65.zip
Diffstat (limited to 'src')
-rw-r--r--src/Vector3.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index c5a3f9f05..ed3f296a6 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -80,14 +80,14 @@ public:
inline bool HasNonZeroLength(void) const
{
- #ifndef __GNUC__
+ #ifdef __clang__
#pragma clang diagnostics push
#pragma clang diagnostics ignored "-Wfloat-equal"
#endif
return ((x != 0) || (y != 0) || (z != 0));
- #ifndef __GNUC__
+ #ifdef __clang__
#pragma clang diagnostics pop
#endif
}
@@ -136,14 +136,14 @@ public:
// Perform a strict comparison of the contents - we want to know whether this object is exactly equal
// To perform EPS-based comparison, use the EqualsEps() function
- #ifndef __GNUC__
+ #ifdef __clang__
#pragma clang diagnostics push
#pragma clang diagnostics ignored "-Wfloat-equal"
#endif
return !((x != a_Rhs.x) || (y != a_Rhs.y) || (z != a_Rhs.z));
- #ifndef __GNUC__
+ #ifdef __clang__
#pragma clang diagnostics pop
#endif
}