blob: 96e70cdb36b2035f046c2b58e46df6fcf3273f6c [file] [log] [blame]
Andrew Geisslerc5535c92023-01-27 16:10:19 -06001From 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