mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
espeak: Drop using 'register' keyword for storage classifier
Fixes build with latest clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://License.txt;md5=cb7a20edb4c9f5f478de6523dcd7362c"
|
||||
SRC_URI = "http://downloads.sourceforge.net/espeak/espeak-1.48.04-source.zip \
|
||||
file://0001-Fix-build-of-shared-library-on-architectures-needing.patch \
|
||||
file://0002-tr_languages-cast-string_ordinal-init-values.patch \
|
||||
file://0001-Drop-using-register-keyword-for-storage-classifier.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "cadd7482eaafe9239546bdc09fa244c3"
|
||||
SRC_URI[sha256sum] = "bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659"
|
||||
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
From bad6131463275bd8013a82c28fb0b27e882bc801 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 18 Jan 2023 16:07:35 -0800
|
||||
Subject: [PATCH] Drop using 'register' keyword for storage classifier
|
||||
|
||||
Its gone from C++17 and newer
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/klatt.cpp | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/klatt.cpp b/src/klatt.cpp
|
||||
index b15f77c..9c51bc5 100755
|
||||
--- a/src/klatt.cpp
|
||||
+++ b/src/klatt.cpp
|
||||
@@ -167,7 +167,7 @@ Output = (rnz.a * input) + (rnz.b * oldin1) + (rnz.c * oldin2)
|
||||
#ifdef deleted
|
||||
static double antiresonator(resonator_ptr r, double input)
|
||||
{
|
||||
- register double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2;
|
||||
+ double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2;
|
||||
r->p2 = (double)r->p1;
|
||||
r->p1 = (double)input;
|
||||
return (double)x;
|
||||
@@ -176,7 +176,7 @@ static double antiresonator(resonator_ptr r, double input)
|
||||
|
||||
static double antiresonator2(resonator_ptr r, double input)
|
||||
{
|
||||
- register double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2;
|
||||
+ double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2;
|
||||
r->p2 = (double)r->p1;
|
||||
r->p1 = (double)input;
|
||||
|
||||
--
|
||||
2.39.1
|
||||
|
||||
Reference in New Issue
Block a user