Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame^] | 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 | |