From 4f438c85153ef7e910917c38ad60c0b6f296ee2d Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 15 Jan 2018 13:33:23 +0200 Subject: [PATCH] eal: remove another use of register keyword The 'register' keyword does nothing, and has been removed in C++17. Remove it for compatibility, like following commit: Fixes: 0d5f2ed12f9e ("eal: remove use of register keyword") Signed-off-by: Avi Kivity --- lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h b/lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h index 6289404a37..8c6cf285b5 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h +++ b/lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h @@ -20,7 +20,7 @@ /* 64-bit mode */ static inline uint64_t rte_arch_bswap64(uint64_t _x) { - register uint64_t x = _x; + uint64_t x = _x; asm volatile ("bswap %[x]" : [x] "+r" (x) ); -- 2.20.1