diff options
author | Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> | 2023-07-27 14:07:49 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-09-08 09:08:54 -0700 |
commit | b0ae977d130cb972e05176cfccf9e651af189a99 (patch) | |
tree | 5d0705ca5e63b9fefcf7634124be7438e7625844 | |
parent | e67ab61e29e979b6a6a8c87cb421c15d7adf5425 (diff) | |
download | meta-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.patch | 50 | ||||
-rw-r--r-- | recipes-graphics/harfbuzz/harfbuzz_2.6.4.bbappend | 5 |
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 @@ | |||
1 | Upstream-status: Backport | ||
2 | |||
3 | Fixes 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 | |||
10 | Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> | ||
11 | --- | ||
12 | From 243d056ff1c2af583ceb67e5dfbfaac51dc96e63 Mon Sep 17 00:00:00 2001 | ||
13 | From: Andi-Bogdan Postelnicu <abpostelnicu@me.com> | ||
14 | Date: Wed, 2 Jun 2021 14:08:11 +0300 | ||
15 | Subject: [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 | |||
22 | diff --git a/src/hb-subset-cff1.cc b/src/hb-subset-cff1.cc | ||
23 | index 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 | -- | ||
49 | 2.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 @@ | |||
1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | SRC_URI:append:toolchain-clang = "\ | ||
4 | file://0001-Removed-unused-variable-supp_size-from-plan_subset_e.patch \ | ||
5 | " | ||