summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWoazboat <f.kargl@posteo.de>2015-05-09 01:15:45 +0200
committerWoazboat <f.kargl@posteo.de>2015-05-09 01:15:45 +0200
commiteaba777a0e268cb883cabb3259989a1d2d9911f0 (patch)
tree3fefbbf4973152a357c601a2019eae83757f2759 /src
parentAdded float comparison warning overrides to Vector3::hasNonZeroLength (diff)
downloadcuberite-eaba777a0e268cb883cabb3259989a1d2d9911f0.tar
cuberite-eaba777a0e268cb883cabb3259989a1d2d9911f0.tar.gz
cuberite-eaba777a0e268cb883cabb3259989a1d2d9911f0.tar.bz2
cuberite-eaba777a0e268cb883cabb3259989a1d2d9911f0.tar.lz
cuberite-eaba777a0e268cb883cabb3259989a1d2d9911f0.tar.xz
cuberite-eaba777a0e268cb883cabb3259989a1d2d9911f0.tar.zst
cuberite-eaba777a0e268cb883cabb3259989a1d2d9911f0.zip
Diffstat (limited to '')
-rw-r--r--src/Vector3.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index f116c07f6..355ba6a52 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
}