added my Recipes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From 08a464e2b6bd31bb2bf4e258ebfa9b9d65805abf Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Fri, 27 Nov 2015 15:17:02 +0100
|
||||
Subject: [PATCH] Fix build of shared library on architectures needing -fPIC
|
||||
|
||||
Certain architectures, like Sparc and Sparc64 require objects to be
|
||||
built with -fPIC (and not just -fpic) to be usable in shared
|
||||
libraries. On other architectures, -fPIC is the same as -fpic so this
|
||||
patch doesn't affect such architectures.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
src/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
index 95fe549..c293611 100755
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -110,7 +110,7 @@ $(BIN2_NAME): $(OBJS3) $(LIB_NAME)
|
||||
|
||||
|
||||
x_%.o: %.cpp
|
||||
- $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fpic -fvisibility=hidden -pedantic \
|
||||
+ $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fPIC -fvisibility=hidden -pedantic \
|
||||
-I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o
|
||||
|
||||
$(LIB_NAME): $(OBJS2)
|
||||
--
|
||||
2.6.3
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From 451330d09a6a3500b40bc4f5896ba790ab46cd6c Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Sun, 15 Jan 2017 19:37:31 +0100
|
||||
Subject: [PATCH 2/2] tr_languages: cast string_ordinal init values
|
||||
|
||||
On some architecture, "char" is signed (x86_64, nios2...) so the
|
||||
compiler try to convert int 0xc2 and 0xba to a signed char.
|
||||
This is an error since gcc6 (Wnarrowing).
|
||||
|
||||
Fixes:
|
||||
http://autobuild.buildroot.net/results/bae/baef9888b1979d18171668a675985e3f3b45fda6
|
||||
|
||||
Upstream-Status: Pending [imported from BR]
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
src/tr_languages.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/tr_languages.cpp b/src/tr_languages.cpp
|
||||
index 5c80286..dbc6e36 100644
|
||||
--- a/src/tr_languages.cpp
|
||||
+++ b/src/tr_languages.cpp
|
||||
@@ -200,7 +200,7 @@ static const unsigned short chars_ignore_zwnj_hyphen[] = {
|
||||
0x200d, 1, // zero width joiner
|
||||
0, 0 };
|
||||
|
||||
-const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8
|
||||
+const char string_ordinal[] = {(char)0xc2,(char)0xba,0}; // masculine ordinal character, UTF-8
|
||||
|
||||
|
||||
static Translator* NewTranslator(void)
|
||||
--
|
||||
2.9.3
|
||||
|
||||
Reference in New Issue
Block a user