[PATCH 1/2] drop use of register keyword
David Bremner
david at tethera.net
Sun May 13 09:17:17 PDT 2018
The performance benefits are dubious, and it's deprecated in C++11.
---
gmime-filter-reply.c | 2 +-
lib/index.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gmime-filter-reply.c b/gmime-filter-reply.c
index a1ba4b45..f673c0a2 100644
--- a/gmime-filter-reply.c
+++ b/gmime-filter-reply.c
@@ -113,7 +113,7 @@ filter_filter (GMimeFilter *filter, char *inbuf, size_t inlen, size_t prespace,
char **outbuf, size_t *outlen, size_t *outprespace)
{
GMimeFilterReply *reply = (GMimeFilterReply *) filter;
- register const char *inptr = inbuf;
+ const char *inptr = inbuf;
const char *inend = inbuf + inlen;
char *outptr;
diff --git a/lib/index.cc b/lib/index.cc
index 0ad683fa..146a8928 100644
--- a/lib/index.cc
+++ b/lib/index.cc
@@ -176,7 +176,7 @@ filter_filter (GMimeFilter *gmime_filter, char *inbuf, size_t inlen, size_t pres
{
NotmuchFilterDiscardNonTerm *filter = (NotmuchFilterDiscardNonTerm *) gmime_filter;
const scanner_state_t *states = filter->states;
- register const char *inptr = inbuf;
+ const char *inptr = inbuf;
const char *inend = inbuf + inlen;
char *outptr;
--
2.17.0
More information about the notmuch
mailing list