* updated libkomparediff2 (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / qt / qt5 / hotfix-gcc11.patch
blob04a3cde93102f2c0edc1f13160cab7ea1e0c722f
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/qt5/hotfix-gcc11.patch
3 # Copyright (C) 2021 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License as published by the Free Software
12 # Foundation; either version 2 of the License, or (at your option) any later
13 # version.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 --- a/qtbase/src/corelib/global/qendian.h
17 +++ b/qtbase/src/corelib/global/qendian.h
18 @@ -44,6 +44,8 @@
19 #include <QtCore/qfloat16.h>
20 #include <QtCore/qglobal.h>
22 +#include <limits>
24 // include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems
25 #include <stdlib.h>
26 #include <string.h>
27 --- a/qtbase/src/corelib/global/qfloat16.h
28 +++ b/qtbase/src/corelib/global/qfloat16.h
29 @@ -43,6 +43,7 @@
31 #include <QtCore/qglobal.h>
32 #include <QtCore/qmetatype.h>
33 +#include <limits>
34 #include <string.h>
36 #if defined(QT_COMPILER_SUPPORTS_F16C) && defined(__AVX2__) && !defined(__F16C__)
37 --- qt-everywhere-src-5.15.2/qtdeclarative/src/3rdparty/masm/yarr/Yarr.h.vanilla 2021-09-17 12:37:34.382532326 +0200
38 +++ qt-everywhere-src-5.15.2/qtdeclarative/src/3rdparty/masm/yarr/Yarr.h 2021-09-17 12:38:29.380530133 +0200
39 @@ -27,7 +27,7 @@
41 #pragma once
43 -#include <limits.h>
44 +#include <limits>
45 #include "YarrErrorCode.h"
47 namespace JSC { namespace Yarr {
48 --- qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h.vanilla 2021-09-17 12:57:54.284483685 +0200
49 +++ qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h 2021-09-17 12:58:01.571483395 +0200
50 @@ -49,6 +49,7 @@
52 #include <initializer_list>
53 #include <type_traits>
54 +#include <limits>
57 // W A R N I N G
58 --- qt-everywhere-src-5.15.2/qtbase/src/corelib/text/qbytearraymatcher.h.vanilla 2021-09-17 13:14:20.790444350 +0200
59 +++ qt-everywhere-src-5.15.2/qtbase/src/corelib/text/qbytearraymatcher.h 2021-09-17 13:15:27.717441682 +0200
60 @@ -42,6 +42,8 @@
62 #include <QtCore/qbytearray.h>
64 +#include <limits>
66 QT_BEGIN_NAMESPACE
69 --- qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc.vanilla 2021-09-17 13:43:15.858375168 +0200
70 +++ qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc 2021-09-17 13:43:36.993374325 +0200
71 @@ -97,6 +97,8 @@
72 #include "common/linux/eintr_wrapper.h"
73 #include "third_party/lss/linux_syscall_support.h"
75 +#include <limits>
77 #if defined(__ANDROID__)
78 #include "linux/sched.h"
79 #endif
80 @@ -140,7 +140,7 @@
81 // SIGSTKSZ may be too small to prevent the signal handlers from overrunning
82 // the alternative stack. Ensure that the size of the alternative stack is
83 // large enough.
84 - static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
85 + static const unsigned kSigStackSize = std::max((long)16384, SIGSTKSZ);
87 // Only set an alternative stack if there isn't already one, or if the current
88 // one is too small.
89 --- qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/containers/string_pool.h.vanilla 2021-09-17 14:36:12.522248505 +0200
90 +++ qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/containers/string_pool.h 2021-09-17 14:36:18.768248256 +0200
91 @@ -22,6 +22,7 @@
93 #include <unordered_map>
94 #include <vector>
95 +#include <limits>
97 #include "perfetto/ext/base/optional.h"
98 #include "perfetto/ext/base/paged_memory.h"