Added float comparison warning overrides to Vector3::hasNonZeroLength

This commit is contained in:
Woazboat 2015-05-06 01:53:28 +02:00
parent ed404bc2f6
commit eb84ffe5a6

View File

@ -80,7 +80,16 @@ public:
inline bool HasNonZeroLength(void) const inline bool HasNonZeroLength(void) const
{ {
#ifndef __GNUC__
#pragma clang diagnostics push
#pragma clang diagnostics ignored "-Wfloat-equal"
#endif
return ((x != 0) || (y != 0) || (z != 0)); return ((x != 0) || (y != 0) || (z != 0));
#ifndef __GNUC__
#pragma clang diagnostics pop
#endif
} }
inline double Length(void) const inline double Length(void) const