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

2013-06-12 Thread Thomas Monjalon
12/06/2013 16:46, Olivier MATZ : > 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 > > Sorry Thomas for the previous one, I should have tested it. No problem, I should also bette

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

2013-06-12 Thread Olivier MATZ
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 pre

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

2013-06-12 Thread Thomas Monjalon
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. Signed-off-by: Thomas Monjalon --- lib/librte_ether/rte_ethdev.h |2 ++