bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Bjarni Ingi Gislason
Subject: [bug #57733] [PATCH] grn/...cpp: Remove the specifier "register"
Date: Mon, 3 Feb 2020 16:21:20 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

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 <address@hidden>
---
 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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]