Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2013 00:03:16 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r259976 - in stable: 10/contrib/gperf/lib 8/contrib/gperf/lib 9/contrib/gperf/lib
Message-ID:  <201312280003.rBS03GYK090470@svn.freebsd.org>

index | next in thread | raw e-mail

Author: dim
Date: Sat Dec 28 00:03:15 2013
New Revision: 259976
URL: http://svnweb.freebsd.org/changeset/base/259976

Log:
  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.

Modified:
  stable/10/contrib/gperf/lib/getline.cc
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/8/contrib/gperf/lib/getline.cc
  stable/9/contrib/gperf/lib/getline.cc
Directory Properties:
  stable/8/contrib/gperf/   (props changed)
  stable/9/contrib/gperf/   (props changed)

Modified: stable/10/contrib/gperf/lib/getline.cc
==============================================================================
--- stable/10/contrib/gperf/lib/getline.cc	Fri Dec 27 23:13:38 2013	(r259975)
+++ stable/10/contrib/gperf/lib/getline.cc	Sat Dec 28 00:03:15 2013	(r259976)
@@ -57,7 +57,7 @@ getstr (char **lineptr, size_t *n, FILE 
 
   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)


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312280003.rBS03GYK090470>