From c36c92e07781fa6338105aaf989122f2cd0b9e36 Mon Sep 17 00:00:00 2001 From: Dave Cottlehuber Date: Fri, 18 May 2018 09:09:27 +0000 Subject: [PATCH] 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 --- node/Packet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/Packet.cpp b/node/Packet.cpp index 2eeceffa8..c83131ca4 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) {