summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gperf/gperf/0001-Make-the-code-C-17-compliant.patch
diff options
context:
space:
mode:
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.patch29
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 @@
1From 6194f0027045433598a61965758b4531a3d06d1f Mon Sep 17 00:00:00 2001
2From: Bruno Haible <bruno@clisp.org>
3Date: Sun, 30 Aug 2020 12:36:15 +0200
4Subject: [PATCH] Make the code C++17 compliant.
5
6* lib/getline.cc (getstr): Don't use the 'register' keyword.
7
8Upstream-Status: Backport [https://git.savannah.gnu.org/gitweb/?p=gperf.git;a=commit;h=a63b830554920476881837eeacd4a6b507632b19]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 lib/getline.cc | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/lib/getline.cc b/lib/getline.cc
15index 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--
282.39.0
29