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-8@freebsd.org
Subject:   svn commit: r259976 - in stable: 10/contrib/gperf/lib 8/contrib/gperf/lib 9/contrib/gperf/lib
Message-ID:  <201312280003.rBS03G6m090462@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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/8/contrib/gperf/lib/getline.cc
Directory Properties:
  stable/8/contrib/gperf/   (props changed)

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

Modified: stable/8/contrib/gperf/lib/getline.cc
==============================================================================
--- stable/8/contrib/gperf/lib/getline.cc	Fri Dec 27 23:13:38 2013	(r259975)
+++ stable/8/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)



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