Browse Source

Remove `register` keyword

In C++17 `register` keyword was removed. Current gcc 8.1.0 produces
following warning if `-std=c++17` flag is used:

warning: ISO C++17 does not allow 'register' storage class specifier
[-Wregister]

GCC almost completely ignores `register` keyword, with rare exception of
`-O0` when additional copy from/to stack may be generated.

For simplicity of the codebase it is better to just remove this
problematic keyword where it is not strictly required.

See: http://en.cppreference.com/w/cpp/language/storage_duration

Signed-off-by: Khem Raj <raj.khem@gmail.com>
tags/debian/1.8.0_beta1
Khem Raj Julian Andres Klode 2 years ago
parent
commit
9f3207395c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      apt-pkg/contrib/md5.cc

+ 1
- 1
apt-pkg/contrib/md5.cc View File

@@ -80,7 +80,7 @@ static void byteSwap(uint32_t *buf, unsigned words)

static void MD5Transform(uint32_t buf[4], uint32_t const in[16])
{
register uint32_t a, b, c, d;
uint32_t a, b, c, d;
a = buf[0];
b = buf[1];


Loading…
Cancel
Save