diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2018-12-24 08:43:50 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2018-12-24 08:43:51 +0000 |
commit | 51e07805e0cf8f53bc9609854d1afd5e51494151 (patch) | |
tree | b76b4ff591d489b33886044dd67a94852c74ea3b /recipes-qt/qt5/qtbase/0019-qendian-Adding-Q_DECL_CONSTEXPR-to-float-conversion-.patch | |
parent | c67abd66ff15feeaae5acc2688b932e5dec72317 (diff) | |
download | meta-qt5-jansa/master-5.12.tar.gz |
qtbase: replace the fix for gcc-4.8 with the one from upstreamupstream/jansa/master-5.12jansa/master-5.12
* fixes:
| In file included from ../include/QtCore/qendian.h:1:0,
| from /OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+13ed06640c-r0/git/src/corelib/codecs/qutfcodec.cpp:43:
| ../include/QtCore/../../../git/src/corelib/global/qendian.h: In instantiation of �constexpr Float qbswapFloatHelper(Float) [with Float = qfloat16]�:
| ../include/QtCore/../../../git/src/corelib/global/qendian.h:167:36: required from here
| ../include/QtCore/../../../git/src/corelib/global/qendian.h:163:1: error: body of constexpr function �constexpr Float qbswapFloatHelper(Float) [with Float = qfloat16]� not a return-statement
| }
| ^
| ../include/QtCore/../../../git/src/corelib/global/qendian.h: In instantiation of �constexpr Float qbswapFloatHelper(Float) [with Float = float]�:
| ../include/QtCore/../../../git/src/corelib/global/qendian.h:172:29: required from here
| ../include/QtCore/../../../git/src/corelib/global/qendian.h:163:1: error: body of constexpr function �constexpr Float qbswapFloatHelper(Float) [with Float = float]� not a return-statement
| ../include/QtCore/../../../git/src/corelib/global/qendian.h: In instantiation of �constexpr Float qbswapFloatHelper(Float) [with Float = double]�:
| ../include/QtCore/../../../git/src/corelib/global/qendian.h:177:29: required from here
| ../include/QtCore/../../../git/src/corelib/global/qendian.h:163:1: error: body of constexpr function �constexpr Float qbswapFloatHelper(Float) [with Float = double]� not a return-statement
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtbase/0019-qendian-Adding-Q_DECL_CONSTEXPR-to-float-conversion-.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase/0019-qendian-Adding-Q_DECL_CONSTEXPR-to-float-conversion-.patch | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/recipes-qt/qt5/qtbase/0019-qendian-Adding-Q_DECL_CONSTEXPR-to-float-conversion-.patch b/recipes-qt/qt5/qtbase/0019-qendian-Adding-Q_DECL_CONSTEXPR-to-float-conversion-.patch deleted file mode 100644 index 42c3d2fb..00000000 --- a/recipes-qt/qt5/qtbase/0019-qendian-Adding-Q_DECL_CONSTEXPR-to-float-conversion-.patch +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | From c10b4df78f56f4ad3db563fe73d0ebece3e5284c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 24 Dec 2018 00:05:06 -0800 | ||
4 | Subject: [PATCH] qendian: Adding Q_DECL_CONSTEXPR to float conversion | ||
5 | specializations | ||
6 | |||
7 | This fixes build failures seen with gcc 4.8 | ||
8 | Fixes https://bugreports.qt.io/browse/QTBUG-71945 | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | src/corelib/global/qendian.h | 8 ++++---- | ||
14 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
15 | |||
16 | diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h | ||
17 | index 0e67a1ab8e..75f109f26c 100644 | ||
18 | --- a/src/corelib/global/qendian.h | ||
19 | +++ b/src/corelib/global/qendian.h | ||
20 | @@ -153,7 +153,7 @@ template <> inline Q_DECL_CONSTEXPR qint8 qbswap<qint8>(qint8 source) | ||
21 | } | ||
22 | |||
23 | // floating specializations | ||
24 | -template<typename Float> | ||
25 | +template<typename Float> Q_DECL_CONSTEXPR | ||
26 | Float qbswapFloatHelper(Float source) | ||
27 | { | ||
28 | // memcpy call in qFromUnaligned is recognized by optimizer as a correct way of type prunning | ||
29 | @@ -162,17 +162,17 @@ Float qbswapFloatHelper(Float source) | ||
30 | return qFromUnaligned<Float>(&temp); | ||
31 | } | ||
32 | |||
33 | -template <> inline qfloat16 qbswap<qfloat16>(qfloat16 source) | ||
34 | +template <> inline Q_DECL_CONSTEXPR qfloat16 qbswap<qfloat16>(qfloat16 source) | ||
35 | { | ||
36 | return qbswapFloatHelper(source); | ||
37 | } | ||
38 | |||
39 | -template <> inline float qbswap<float>(float source) | ||
40 | +template <> inline Q_DECL_CONSTEXPR float qbswap<float>(float source) | ||
41 | { | ||
42 | return qbswapFloatHelper(source); | ||
43 | } | ||
44 | |||
45 | -template <> inline double qbswap<double>(double source) | ||
46 | +template <> inline Q_DECL_CONSTEXPR double qbswap<double>(double source) | ||
47 | { | ||
48 | return qbswapFloatHelper(source); | ||
49 | } | ||