From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH v1] eal: remove another use of register keyword Date: Mon, 15 Jan 2018 13:33:23 +0200 Message-ID: <20180115113323.24439-1-avi@scylladb.com> To: dev@dpdk.org Return-path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id E748031FC for ; Mon, 15 Jan 2018 12:33:26 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id i11so1236100wmf.4 for ; Mon, 15 Jan 2018 03:33:26 -0800 (PST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The 'register' keyword does nothing, and has been removed in C++17. Remove it for compatibility, like commit 0d5f2ed12f9eb. 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 6289404a3..8c6cf285b 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 @@ -18,11 +18,11 @@ * Do not use this function directly. The preferred function is rte_bswap64(). */ /* 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) ); return x; } -- 2.14.3