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 <[email protected]>
---
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/