diff options
author | Dave Cottlehuber <dch@skunkwerks.at> | 2018-05-18 09:09:27 +0000 |
---|---|---|
committer | Dave Cottlehuber <dch@skunkwerks.at> | 2018-05-18 09:09:27 +0000 |
commit | c36c92e07781fa6338105aaf989122f2cd0b9e36 (patch) | |
tree | b528ca2ae922b6932cf929c403def1458f538ccb /node | |
parent | 43331d3fe849bd2d17c8e3e774ef7e47c84d7ce7 (diff) | |
download | infinitytier-c36c92e07781fa6338105aaf989122f2cd0b9e36.tar.gz infinitytier-c36c92e07781fa6338105aaf989122f2cd0b9e36.zip |
node: remove deprecated register hint for C++17 compatibility
when building with `ZT_DEBUG=1` this hint produces a warning:
> node/Packet.cpp:335:43: error: 'register' storage class specifier is deprecated and incompatible with C++17 [-Werror,-Wdeprecated-register]
See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4340
Diffstat (limited to 'node')
-rw-r--r-- | node/Packet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Packet.cpp b/node/Packet.cpp index 2eeceffa..c83131ca 100644 --- a/node/Packet.cpp +++ b/node/Packet.cpp @@ -332,7 +332,7 @@ static const int LZ4_minLength = (MFLIMIT+1); #define LZ4_STATIC_ASSERT(c) { enum { LZ4_static_assert = 1/(int)(!!(c)) }; } /* use only *after* variable declarations */ -static inline unsigned LZ4_NbCommonBytes (register reg_t val) +static inline unsigned LZ4_NbCommonBytes (reg_t val) { if (LZ4_isLittleEndian()) { if (sizeof(val)==8) { |