diff options
author | dim <dim@FreeBSD.org> | 2013-12-23 00:02:18 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-23 00:02:18 +0000 |
commit | aa956116c1d2e2f0ac93b94b87dc9fd3a4c57488 (patch) | |
tree | 4e90b7b6e0474bbabbf00df7fe26106b576c767b /contrib/gperf/lib | |
parent | 37562f02d323b88700241b673b2430068f2a6fa2 (diff) | |
download | FreeBSD-src-aa956116c1d2e2f0ac93b94b87dc9fd3a4c57488.zip FreeBSD-src-aa956116c1d2e2f0ac93b94b87dc9fd3a4c57488.tar.gz |
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
Diffstat (limited to 'contrib/gperf/lib')
-rw-r--r-- | contrib/gperf/lib/getline.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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) |