summaryrefslogtreecommitdiffstats
path: root/contrib/gperf
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-12-28 00:03:15 +0000
committerdim <dim@FreeBSD.org>2013-12-28 00:03:15 +0000
commit7b0e1bcf7d1053c24ad2c1352694468e0e038c1e (patch)
tree8f55e21d57d13e077c886e59a94ad2c0289941b3 /contrib/gperf
parenta74695269c1a765e4ce78f380c7a96825cfac02e (diff)
downloadFreeBSD-src-7b0e1bcf7d1053c24ad2c1352694468e0e038c1e.zip
FreeBSD-src-7b0e1bcf7d1053c24ad2c1352694468e0e038c1e.tar.gz
MFC r259756:
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.
Diffstat (limited to 'contrib/gperf')
-rw-r--r--contrib/gperf/lib/getline.cc2
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)
OpenPOWER on IntegriCloud