[dpdk-dev] [PATCH] eal: fix C++ build (struct member: virtual)

Dumitrescu, Cristian cristian.dumitrescu at intel.com
Mon Sep 28 22:04:40 CEST 2015



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Christoph Gysin
> Sent: Saturday, September 26, 2015 2:10 PM
> To: dev at dpdk.org
> Subject: [dpdk-dev] [PATCH] eal: fix C++ build (struct member: virtual)
> 
> 'virtual' is a keyword and can't be used if the code is to compile with
> C++ compilers.
> 
> If rte_devargs.h was included in C++ code, compilation with clang++
> failed with an error. g++ did not fail, but only because of a bug
> that treats it as an anonymous struct with a decl-specifier which it
> ignores.
> 
> This simply renames the member to 'virt'.
> ---

Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>

David, Thomas, are you OK with this change? Thanks, Cristian



More information about the dev mailing list