diff options
Diffstat (limited to 'meta/recipes-extended/gperf/gperf/0001-Make-the-code-C-17-compliant.patch')
-rw-r--r-- | meta/recipes-extended/gperf/gperf/0001-Make-the-code-C-17-compliant.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-extended/gperf/gperf/0001-Make-the-code-C-17-compliant.patch b/meta/recipes-extended/gperf/gperf/0001-Make-the-code-C-17-compliant.patch new file mode 100644 index 0000000000..96e70cdb36 --- /dev/null +++ b/meta/recipes-extended/gperf/gperf/0001-Make-the-code-C-17-compliant.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 6194f0027045433598a61965758b4531a3d06d1f Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruno Haible <bruno@clisp.org> | ||
3 | Date: Sun, 30 Aug 2020 12:36:15 +0200 | ||
4 | Subject: [PATCH] Make the code C++17 compliant. | ||
5 | |||
6 | * lib/getline.cc (getstr): Don't use the 'register' keyword. | ||
7 | |||
8 | Upstream-Status: Backport [https://git.savannah.gnu.org/gitweb/?p=gperf.git;a=commit;h=a63b830554920476881837eeacd4a6b507632b19] | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | lib/getline.cc | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/lib/getline.cc b/lib/getline.cc | ||
15 | index c57c633..0984a7c 100644 | ||
16 | --- a/lib/getline.cc | ||
17 | +++ b/lib/getline.cc | ||
18 | @@ -55,7 +55,7 @@ getstr (char **lineptr, size_t *n, FILE *stream, char terminator, size_t offset) | ||
19 | |||
20 | for (;;) | ||
21 | { | ||
22 | - register int c = getc (stream); | ||
23 | + int c = getc (stream); | ||
24 | |||
25 | /* We always want at least one char left in the buffer, since we | ||
26 | always (unless we get an error while reading the first char) | ||
27 | -- | ||
28 | 2.39.0 | ||
29 | |||