summaryrefslogtreecommitdiff
path: root/dev-util/gperf/files/gperf-3.1-clang-16-wregister.patch
blob: 4bbcca6d57e09c4d48a2a15be338e5a7d12eefe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
https://bugs.gentoo.org/882787
https://git.savannah.gnu.org/gitweb/?p=gperf.git;a=commit;h=a63b830554920476881837eeacd4a6b507632b19

From a63b830554920476881837eeacd4a6b507632b19 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sun, 30 Aug 2020 12:36:15 +0200
Subject: [PATCH] Make the code C++17 compliant.

* lib/getline.cc (getstr): Don't use the 'register' keyword.

--- a/lib/getline.cc
+++ b/lib/getline.cc
@@ -55,7 +55,7 @@ getstr (char **lineptr, size_t *n, FILE *stream, char terminator, size_t offset)
 
   for (;;)
     {
-      register int c = getc (stream);
+      int c = getc (stream);
 
       /* We always want at least one char left in the buffer, since we
          always (unless we get an error while reading the first char)