diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-06-16 10:51:41 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-06-17 22:05:21 +0200 |
commit | a42dd2ffe0565d827d1e06f79c4d0973fa5a71c7 (patch) | |
tree | 57660fa2300368731d9975612e2a5da79bb25dd1 /src/corelib/global/qnumeric_p.h | |
parent | 4d90725e77a2a5d8171f84697031deb227f72917 (diff) |
Cleanup float-equal warnings
Consistently use the macro from qcompilerdetection.h instead of manually
disabling the warning for three different compilers.
Change-Id: Id59d30047c8a504e1082d7e47c02f4746fddf9d6
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/global/qnumeric_p.h')
-rw-r--r-- | src/corelib/global/qnumeric_p.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/global/qnumeric_p.h b/src/corelib/global/qnumeric_p.h index 7a03e32699..27490bce97 100644 --- a/src/corelib/global/qnumeric_p.h +++ b/src/corelib/global/qnumeric_p.h @@ -240,8 +240,7 @@ template <typename T> static inline bool convertDoubleTo(double v, T *value, boo *value = T(v); QT_WARNING_PUSH -QT_WARNING_DISABLE_GCC("-Wfloat-equal") -QT_WARNING_DISABLE_CLANG("-Wfloat-equal") +QT_WARNING_DISABLE_FLOAT_COMPARE return *value == v; |