Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.groff.bug > #1703

[bug #57733] [PATCH] grn/...cpp: Remove the specifier "register"

From Bjarni Ingi Gislason <INVALID.NOREPLY@gnu.org>
Newsgroups gnu.groff.bug
Subject [bug #57733] [PATCH] grn/...cpp: Remove the specifier "register"
Date 2020-02-03 16:21 -0500
Message-ID <mailman.236.1580764887.2412.bug-groff@gnu.org> (permalink)
References <20200203-212118.sv93188.71295@savannah.gnu.org>

Show all headers | View raw


URL:
  <https://savannah.gnu.org/bugs/?57733>

                 Summary: [PATCH] grn/...cpp: Remove the specifier "register"
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Mon 03 Feb 2020 09:21:18 PM UTC
                Category: Preprocessor grn
                Severity: 3 - Normal
              Item Group: Warning/Suspicious behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

Subject: [PATCH] grn/...cpp: Remove the specifier "register"

  A compiler can issue:

warning: ISO C++17 does not allow 'register' storage class specifier
[-Wregister]

  Stroustrup in "The C++ Programming Language, Third Edition" (28th
printing November 2008) writes on page 806:

"Declaring a variable _register_ is a hint to the compiler to optimize
for frequent access; doing so is redundant with most modern compilers."

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 src/preproc/grn/hdb.cpp    |  16 +++---
 src/preproc/grn/hgraph.cpp | 106 ++++++++++++++++++-------------------
 src/preproc/grn/hpoint.cpp |   2 +-
 src/preproc/grn/main.cpp   |  32 +++++------
 4 files changed, 78 insertions(+), 78 deletions(-)

  The patch is in the attachment.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 03 Feb 2020 09:21:18 PM UTC  Name:
0001-grn-.cpp-Remove-the-specifier-register.txt  Size: 11KiB   By: bjarniig

<http://savannah.gnu.org/bugs/download.php?file_id=48341>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57733>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/

Back to gnu.groff.bug | Previous | Next | Find similar


Thread

[bug #57733] [PATCH] grn/...cpp: Remove the specifier "register" Bjarni Ingi Gislason <INVALID.NOREPLY@gnu.org> - 2020-02-03 16:21 -0500

csiph-web