From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from BILEMAIL1.empirix.com (10.17.8.30) by bilemail2.empirix.com (10.17.8.31) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 13 Jul 2018 09:51:22 -0400 Received: from BILEMAIL1.empirix.com ([fe80::f9e0:9293:2523:f021]) by bilemail1.empirix.com ([fe80::f9e0:9293:2523:f021%22]) with mapi id 15.00.1178.000; Fri, 13 Jul 2018 09:51:22 -0400 From: "Montorsi, Francesco" To: "dev@dpdk.org" Thread-Topic: warnings when including DPDK headers from a C++17 source file Thread-Index: AQHUGrB6zUbr5NJY40+AogCvyAkucQ== Date: Fri, 13 Jul 2018 13:51:21 +0000 Message-ID: <1531489881821.76380@empirix.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.20.52.58] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] warnings when including DPDK headers from a C++17 source file X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2018 13:51:23 -0000 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