From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Montorsi, Francesco" Subject: warnings when including DPDK headers from a C++17 source file Date: Fri, 13 Jul 2018 13:51:21 +0000 Message-ID: <1531489881821.76380@empirix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: "dev@dpdk.org" Return-path: Received: from bilemail2.empirix.com (bilemail2.empirix.com [208.67.76.246]) by dpdk.org (Postfix) with ESMTP id 9637F25A1 for ; Fri, 13 Jul 2018 15:51:23 +0200 (CEST) Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi all, I just noticed that, because of the removal of the "register" keyword in C+= +17, when I compile my DPDK-enabled code with -std=3Dc++17 I get the follow= ing: In file included from ../../../Third-Party/cpp-libs/dpdk/include/rte_ether.= h:53:0, from ../../../Third-Party/cpp-libs/dpdk/include/rte_ethdev= .h:186, from HwEmulCaptureDPDK.cpp:43: ../../../Third-Party/cpp-libs/dpdk/include/rte_byteorder.h: In function 'ui= nt16_t rte_arch_bswap16(uint16_t)': ../../../Third-Party/cpp-libs/dpdk/include/rte_byteorder.h:57:20: warning: = ISO C++1z does not allow 'register' storage class specifier [-Wregister] register uint16_t x =3D _x; ^ ../../../Third-Party/cpp-libs/dpdk/include/rte_byteorder.h: In function 'ui= nt32_t rte_arch_bswap32(uint32_t)': ../../../Third-Party/cpp-libs/dpdk/include/rte_byteorder.h:72:20: warning: = ISO C++1z does not allow 'register' storage class specifier [-Wregister] register uint32_t x =3D _x; ^ In file included from ../../../Third-Party/cpp-libs/dpdk/include/rte_byteor= der.h:121:0, from ../../../Third-Party/cpp-libs/dpdk/include/rte_ether.= h:53, from ../../../Third-Party/cpp-libs/dpdk/include/rte_ethdev= .h:186, from HwEmulCaptureDPDK.cpp:43: ../../../Third-Party/cpp-libs/dpdk/include/rte_byteorder_64.h: In function = 'uint64_t rte_arch_bswap64(uint64_t)': ../../../Third-Party/cpp-libs/dpdk/include/rte_byteorder_64.h:52:20: warnin= g: ISO C++1z does not allow 'register' storage class specifier [-Wregister] register uint64_t x =3D _x; ^ ?Just thought to let you know... that's a small issue for me since I'm usin= g -Werror Thanks, Francesco