diff options
author | Carlos Rafael Giani <crg7475@mailbox.org> | 2022-04-07 00:16:16 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2022-04-16 18:05:07 +0200 |
commit | 5ef3a0ffd3324937252790266e2b2e64d33ef34f (patch) | |
tree | 4e1c487048c49baee83a5f614d2111c7b1946a83 /recipes-qt/qt5/qtdeclarative/0004-qqmlprofilerevent_p-needs-c-limits-inlcude-fixes-gcc.patch | |
parent | 42022cad58e8c671fb1852ecaa06a604587f2d66 (diff) |
qtdeclarative: Fix build with gcc-11upstream/jansa/dunfellupstream/dunfell-nextupstream/dunfell
Origin:
https://lists.buildroot.org/pipermail/buildroot/2021-July/617465.html
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtdeclarative/0004-qqmlprofilerevent_p-needs-c-limits-inlcude-fixes-gcc.patch')
-rw-r--r-- | recipes-qt/qt5/qtdeclarative/0004-qqmlprofilerevent_p-needs-c-limits-inlcude-fixes-gcc.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtdeclarative/0004-qqmlprofilerevent_p-needs-c-limits-inlcude-fixes-gcc.patch b/recipes-qt/qt5/qtdeclarative/0004-qqmlprofilerevent_p-needs-c-limits-inlcude-fixes-gcc.patch new file mode 100644 index 00000000..fb47b22b --- /dev/null +++ b/recipes-qt/qt5/qtdeclarative/0004-qqmlprofilerevent_p-needs-c-limits-inlcude-fixes-gcc.patch @@ -0,0 +1,45 @@ +From cc8d62f556c065d28a52e4b784b5d22f2cca3001 Mon Sep 17 00:00:00 2001 +From: Peter Seiderer <ps.report at gmx.net> +Date: Thu, 22 Jul 2021 23:13:43 +0200 +Subject: [PATCH] qqmlprofilerevent_p: needs c++ limits inlcude (fixes gcc-11 + compile) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes: + + In file included from qqmlprofilertypedevent_p.h:43, + from qqmlprofilertypedevent.cpp:40: + qqmlprofilerevent_p.h: In member function ‘void QQmlProfilerEvent::assignNumbers(const Container&)’: + qqmlprofilerevent_p.h:314:65: error: ‘numeric_limits’ is not a member of ‘std’ + 314 | static_cast<quint16>(numbers.size()) : std::numeric_limits<quint16>::max(); + | ^~~~~~~~~~~~~~ + qqmlprofilerevent_p.h:314:87: error: expected primary-expression before ‘>’ token + 314 | static_cast<quint16>(numbers.size()) : std::numeric_limits<quint16>::max(); + | ^ + qqmlprofilerevent_p.h:314:90: error: ‘::max’ has not been declared; did you mean ‘std::max’? + 314 | static_cast<quint16>(numbers.size()) : std::numeric_limits<quint16>::max(); + | ^~~ + | std::max + +Signed-off-by: Peter Seiderer <ps.report at gmx.net> +--- + src/qmldebug/qqmlprofilerevent_p.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/qmldebug/qqmlprofilerevent_p.h b/src/qmldebug/qqmlprofilerevent_p.h +index a7e37d1964..01b2f58f16 100644 +--- a/src/qmldebug/qqmlprofilerevent_p.h ++++ b/src/qmldebug/qqmlprofilerevent_p.h +@@ -48,6 +48,7 @@ + #include <QtCore/qmetatype.h> + + #include <initializer_list> ++#include <limits> + #include <type_traits> + + // +-- +2.32.0 + |