drop use of register keyword

The performance benefits are dubious, and it's deprecated in C++11.
This commit is contained in:
David Bremner 2018-05-13 13:17:17 -03:00
parent b2e4778ea4
commit 1883ab6650
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;