diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-01-18 16:09:00 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-01-21 10:02:02 -0800 |
| commit | 0e1293981795c9b8771d059cf333496f03084889 (patch) | |
| tree | 9a3a4bdc32571a9eff9b282427cfff2bbd07f11e /meta-oe/recipes-support | |
| parent | adb1af7105a28c6eb39cc12fb24f72afbf413060 (diff) | |
| download | meta-openembedded-0e1293981795c9b8771d059cf333496f03084889.tar.gz | |
espeak: Drop using 'register' keyword for storage classifier
Fixes build with latest clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support')
| -rw-r--r-- | meta-oe/recipes-support/espeak/espeak_1.48.04.bb | 1 | ||||
| -rw-r--r-- | meta-oe/recipes-support/espeak/files/0001-Drop-using-register-keyword-for-storage-classifier.patch | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/espeak/espeak_1.48.04.bb b/meta-oe/recipes-support/espeak/espeak_1.48.04.bb index 0dc61c1c30..147a8069fa 100644 --- a/meta-oe/recipes-support/espeak/espeak_1.48.04.bb +++ b/meta-oe/recipes-support/espeak/espeak_1.48.04.bb | |||
| @@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://License.txt;md5=cb7a20edb4c9f5f478de6523dcd7362c" | |||
| 6 | SRC_URI = "http://downloads.sourceforge.net/espeak/espeak-1.48.04-source.zip \ | 6 | SRC_URI = "http://downloads.sourceforge.net/espeak/espeak-1.48.04-source.zip \ |
| 7 | file://0001-Fix-build-of-shared-library-on-architectures-needing.patch \ | 7 | file://0001-Fix-build-of-shared-library-on-architectures-needing.patch \ |
| 8 | file://0002-tr_languages-cast-string_ordinal-init-values.patch \ | 8 | file://0002-tr_languages-cast-string_ordinal-init-values.patch \ |
| 9 | file://0001-Drop-using-register-keyword-for-storage-classifier.patch \ | ||
| 9 | " | 10 | " |
| 10 | SRC_URI[md5sum] = "cadd7482eaafe9239546bdc09fa244c3" | 11 | SRC_URI[md5sum] = "cadd7482eaafe9239546bdc09fa244c3" |
| 11 | SRC_URI[sha256sum] = "bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659" | 12 | SRC_URI[sha256sum] = "bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659" |
diff --git a/meta-oe/recipes-support/espeak/files/0001-Drop-using-register-keyword-for-storage-classifier.patch b/meta-oe/recipes-support/espeak/files/0001-Drop-using-register-keyword-for-storage-classifier.patch new file mode 100644 index 0000000000..d9c0d08ec9 --- /dev/null +++ b/meta-oe/recipes-support/espeak/files/0001-Drop-using-register-keyword-for-storage-classifier.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From bad6131463275bd8013a82c28fb0b27e882bc801 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 18 Jan 2023 16:07:35 -0800 | ||
| 4 | Subject: [PATCH] Drop using 'register' keyword for storage classifier | ||
| 5 | |||
| 6 | Its gone from C++17 and newer | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | src/klatt.cpp | 4 ++-- | ||
| 12 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/src/klatt.cpp b/src/klatt.cpp | ||
| 15 | index b15f77c..9c51bc5 100755 | ||
| 16 | --- a/src/klatt.cpp | ||
| 17 | +++ b/src/klatt.cpp | ||
| 18 | @@ -167,7 +167,7 @@ Output = (rnz.a * input) + (rnz.b * oldin1) + (rnz.c * oldin2) | ||
| 19 | #ifdef deleted | ||
| 20 | static double antiresonator(resonator_ptr r, double input) | ||
| 21 | { | ||
| 22 | - register double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2; | ||
| 23 | + double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2; | ||
| 24 | r->p2 = (double)r->p1; | ||
| 25 | r->p1 = (double)input; | ||
| 26 | return (double)x; | ||
| 27 | @@ -176,7 +176,7 @@ static double antiresonator(resonator_ptr r, double input) | ||
| 28 | |||
| 29 | static double antiresonator2(resonator_ptr r, double input) | ||
| 30 | { | ||
| 31 | - register double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2; | ||
| 32 | + double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2; | ||
| 33 | r->p2 = (double)r->p1; | ||
| 34 | r->p1 = (double)input; | ||
| 35 | |||
| 36 | -- | ||
| 37 | 2.39.1 | ||
| 38 | |||
