From aa956116c1d2e2f0ac93b94b87dc9fd3a4c57488 Mon Sep 17 00:00:00 2001 From: dim Date: Mon, 23 Dec 2013 00:02:18 +0000 Subject: Get rid of register keyword usage in gperf, it is totally obsolete for C++, and this allows gperf to be compiled for C++11 without a warning about it. MFC after: 3 days --- contrib/gperf/lib/getline.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/gperf/lib') diff --git a/contrib/gperf/lib/getline.cc b/contrib/gperf/lib/getline.cc index d3393fb..859e388 100644 --- a/contrib/gperf/lib/getline.cc +++ b/contrib/gperf/lib/getline.cc @@ -57,7 +57,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) -- cgit v1.1