diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-01-20 15:57:05 -0800 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-01-22 12:08:14 +0100 |
commit | 9f3207395ca4d331107cfd76365d484f4637c76d (patch) | |
tree | 352e383d8ab4b5c6f76be2aa4b17c7bb94372acf /apt-pkg/version.h | |
parent | 01c57d7235e9013a977646cbee73af43cbc1048b (diff) |
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>
Diffstat (limited to 'apt-pkg/version.h')
0 files changed, 0 insertions, 0 deletions