summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/flatbuffers
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/flatbuffers')
-rw-r--r--meta-oe/recipes-devtools/flatbuffers/flatbuffers/0001-C-stl_emulation-span-count_-is-not-const-anymore-722.patch27
-rw-r--r--meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb4
2 files changed, 30 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/flatbuffers/flatbuffers/0001-C-stl_emulation-span-count_-is-not-const-anymore-722.patch b/meta-oe/recipes-devtools/flatbuffers/flatbuffers/0001-C-stl_emulation-span-count_-is-not-const-anymore-722.patch
new file mode 100644
index 0000000000..0a48c665b5
--- /dev/null
+++ b/meta-oe/recipes-devtools/flatbuffers/flatbuffers/0001-C-stl_emulation-span-count_-is-not-const-anymore-722.patch
@@ -0,0 +1,27 @@
1From 659def02b6432b62220ed41d7c137dcfd9dfe024 Mon Sep 17 00:00:00 2001
2From: avaliente-bc <56400759+avaliente-bc@users.noreply.github.com>
3Date: Wed, 6 Apr 2022 21:27:37 +0200
4Subject: [PATCH] [C++] stl_emulation span::count_ is not const anymore (#7226)
5 (#7227)
6
7In C++ we cannot have both assignment operator and const member. Since
8span::operator= is defined, span::count_ constness must be removed.
9---
10Upstream-Status: Backport [https://github.com/google/flatbuffers/commit/20aad0c41e1252b04c72111c3eb221280a9c2009]
11
12 include/flatbuffers/stl_emulation.h | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/include/flatbuffers/stl_emulation.h b/include/flatbuffers/stl_emulation.h
16index 44e9ccbfa..cac87db65 100644
17--- a/include/flatbuffers/stl_emulation.h
18+++ b/include/flatbuffers/stl_emulation.h
19@@ -629,7 +629,7 @@ class span FLATBUFFERS_FINAL_CLASS {
20 private:
21 // This is a naive implementation with 'count_' member even if (Extent != dynamic_extent).
22 pointer const data_;
23- const size_type count_;
24+ size_type count_;
25 };
26
27 #if !defined(FLATBUFFERS_SPAN_MINIMAL)
diff --git a/meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb
index 44478ea0b2..1ffb28a198 100644
--- a/meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb
+++ b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb
@@ -14,7 +14,9 @@ RDEPENDS:${PN}-dev += "${PN}-compiler"
14LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" 14LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
15 15
16SRCREV = "a9a295fecf3fbd5a4f571f53b01f63202a3e2113" 16SRCREV = "a9a295fecf3fbd5a4f571f53b01f63202a3e2113"
17SRC_URI = "git://github.com/google/flatbuffers.git;branch=master;protocol=https" 17SRC_URI = "git://github.com/google/flatbuffers.git;branch=master;protocol=https \
18 file://0001-C-stl_emulation-span-count_-is-not-const-anymore-722.patch \
19"
18S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"
19 21
20CVE_CHECK_IGNORE += "CVE-2020-35864" 22CVE_CHECK_IGNORE += "CVE-2020-35864"