summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <raphael.kubo.da.costa@intel.com>2023-07-27 14:07:49 +0200
committerKhem Raj <raj.khem@gmail.com>2023-09-08 09:08:54 -0700
commitb0ae977d130cb972e05176cfccf9e651af189a99 (patch)
tree5d0705ca5e63b9fefcf7634124be7438e7625844
parente67ab61e29e979b6a6a8c87cb421c15d7adf5425 (diff)
downloadmeta-clang-b0ae977d130cb972e05176cfccf9e651af189a99.tar.gz
harfbuzz: Add upstream patch to fix the build with clang
Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
-rw-r--r--recipes-graphics/harfbuzz/harfbuzz/0001-Removed-unused-variable-supp_size-from-plan_subset_e.patch50
-rw-r--r--recipes-graphics/harfbuzz/harfbuzz_2.6.4.bbappend5
2 files changed, 55 insertions, 0 deletions
diff --git a/recipes-graphics/harfbuzz/harfbuzz/0001-Removed-unused-variable-supp_size-from-plan_subset_e.patch b/recipes-graphics/harfbuzz/harfbuzz/0001-Removed-unused-variable-supp_size-from-plan_subset_e.patch
new file mode 100644
index 0000000..67455b8
--- /dev/null
+++ b/recipes-graphics/harfbuzz/harfbuzz/0001-Removed-unused-variable-supp_size-from-plan_subset_e.patch
@@ -0,0 +1,50 @@
1Upstream-status: Backport
2
3Fixes the following build error:
4
5| ../../harfbuzz-2.6.4/src/hb-subset-cff1.cc:472:33: error: variable 'supp_size' set but not used [-Werror,-Wunused-but-set-variable]
6| unsigned int size0, size1, supp_size;
7| ^
8| 1 error generated.
9
10Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
11---
12From 243d056ff1c2af583ceb67e5dfbfaac51dc96e63 Mon Sep 17 00:00:00 2001
13From: Andi-Bogdan Postelnicu <abpostelnicu@me.com>
14Date: Wed, 2 Jun 2021 14:08:11 +0300
15Subject: [PATCH] Removed unused variable `supp_size` from
16 plan_subset_encoding(...).
17
18---
19 src/hb-subset-cff1.cc | 4 +---
20 1 file changed, 1 insertion(+), 3 deletions(-)
21
22diff --git a/src/hb-subset-cff1.cc b/src/hb-subset-cff1.cc
23index df322f845..35dae7b1f 100644
24--- a/src/hb-subset-cff1.cc
25+++ b/src/hb-subset-cff1.cc
26@@ -469,12 +469,11 @@ struct cff_subset_plan {
27 unsigned int plan_subset_encoding (const OT::cff1::accelerator_subset_t &acc, hb_subset_plan_t *plan)
28 {
29 const Encoding *encoding = acc.encoding;
30- unsigned int size0, size1, supp_size;
31+ unsigned int size0, size1;
32 hb_codepoint_t code, last_code = CFF_UNDEF_CODE;
33 hb_vector_t<hb_codepoint_t> supp_codes;
34
35 subset_enc_code_ranges.resize (0);
36- supp_size = 0;
37 supp_codes.init ();
38
39 subset_enc_num_codes = plan->num_output_glyphs () - 1;
40@@ -510,7 +509,6 @@ struct cff_subset_plan {
41 code_pair_t pair = { supp_codes[i], sid };
42 subset_enc_supp_codes.push (pair);
43 }
44- supp_size += SuppEncoding::static_size * supp_codes.length;
45 }
46 }
47 supp_codes.fini ();
48--
492.41.0
50
diff --git a/recipes-graphics/harfbuzz/harfbuzz_2.6.4.bbappend b/recipes-graphics/harfbuzz/harfbuzz_2.6.4.bbappend
new file mode 100644
index 0000000..9d02c11
--- /dev/null
+++ b/recipes-graphics/harfbuzz/harfbuzz_2.6.4.bbappend
@@ -0,0 +1,5 @@
1FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2
3SRC_URI:append:toolchain-clang = "\
4 file://0001-Removed-unused-variable-supp_size-from-plan_subset_e.patch \
5"