[dpdk-dev] [PATCH] ethdev: fix empty struct rte_eth_txmode

Olivier MATZ olivier.matz at 6wind.com
Wed Jun 12 16:46:10 CEST 2013


On 06/12/2013 04:30 PM, Thomas Monjalon wrote:
> The previous fix was for g++ but is broken with gcc:
> 	error: flexible array member in otherwise empty struct
> See http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/Zero-Length.html
>
> Let's fix it with #ifdef __cplusplus.

Sorry Thomas for the previous one, I should have tested it.

This one looks good, I checked compilation and it works with
gcc-4.6.3 and g++-4.6.3


More information about the dev mailing list