Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
libqt5-qtbase.15972
0001-Fix-qfloat16-methods-definition-without-de...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-qfloat16-methods-definition-without-declaration-.patch of Package libqt5-qtbase.15972
From edc15323b4ef13a2a58ba4bebd46a78449b628ee Mon Sep 17 00:00:00 2001 From: Antonio Larrosa <alarrosa@suse.com> Date: Fri, 21 Dec 2018 12:33:39 +0100 Subject: [PATCH] Fix qfloat16 methods definition without declaration when using Q_QDOC This fixes qtdoc failing to build on i586 because of an assertion in libclang since Q_QDOC is defined and thus the declaration of the qfloat16(float) constructor and operator float() are removed, thus their definitions should be removed too, which is what this patch does. This patch was done together with Michal Srb <msrb@suse.com>. Fixes: QTBUG-72725 Change-Id: I6424873425d46345e09f411f9ce88f2520825da4 --- src/corelib/global/qfloat16.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/global/qfloat16.h b/src/corelib/global/qfloat16.h index b76d2b96..99bbf8f5 100644 --- a/src/corelib/global/qfloat16.h +++ b/src/corelib/global/qfloat16.h @@ -210,6 +210,7 @@ QF16_MAKE_ARITH_OP_INT(*) QF16_MAKE_ARITH_OP_INT(/) #undef QF16_MAKE_ARITH_OP_INT +#ifndef Q_QDOC QT_WARNING_PUSH QT_WARNING_DISABLE_CLANG("-Wfloat-equal") QT_WARNING_DISABLE_GCC("-Wfloat-equal") @@ -258,6 +259,7 @@ Q_REQUIRED_RESULT inline bool qFuzzyIsNull(qfloat16 f) Q_DECL_NOTHROW { return qAbs(static_cast<float>(f)) <= 0.001f; } +#endif QT_END_NAMESPACE
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor