aboutsummaryrefslogtreecommitdiff
path: root/repos/clang/gperf/gperf-3.1-clang-16-wregister.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repos/clang/gperf/gperf-3.1-clang-16-wregister.patch')
-rw-r--r--repos/clang/gperf/gperf-3.1-clang-16-wregister.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/repos/clang/gperf/gperf-3.1-clang-16-wregister.patch b/repos/clang/gperf/gperf-3.1-clang-16-wregister.patch
new file mode 100644
index 00000000..4bbcca6d
--- /dev/null
+++ b/repos/clang/gperf/gperf-3.1-clang-16-wregister.patch
@@ -0,0 +1,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)