diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2019-05-07 14:57:56 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-05-07 17:46:08 +0000 |
commit | add4b56b21bae5cef222ee23e00707664ca50e7f (patch) | |
tree | 90f72a350584f16c3138966c08dabf2bb4ee34c4 /src/corelib/global/qglobal.h | |
parent | 2841d5bf64d6228cdb5e42cdd1d4e2e8035217fa (diff) |
Add warning suppression for icc when comparing floating-point values
The new implementations of qIsNull use naked floating point
comparisons to 0 and suppress the warnings for clang and gcc; so add
suppression also for icc.
Fixes: QTBUG-75644
Change-Id: I59aa1443666a542f38197f2b124503cc562708cb
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/global/qglobal.h')
-rw-r--r-- | src/corelib/global/qglobal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index a1f191516a..0a0c434a07 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -905,6 +905,7 @@ Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNul QT_WARNING_PUSH QT_WARNING_DISABLE_CLANG("-Wfloat-equal") QT_WARNING_DISABLE_GCC("-Wfloat-equal") +QT_WARNING_DISABLE_INTEL(1572) Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qIsNull(double d) noexcept { |