From 1883ab6650969500e5c7640ee105b386445b33e9 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 13 May 2018 13:17:17 -0300 Subject: [PATCH] drop use of register keyword 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;