<div><pre style="line-height: normal;">Hello all,</pre><pre style="line-height: normal;">I'm trying to write a C++ DPDK example. Everything is fine until I tried to enable RSS feature. It wasn't work.</pre><pre style="line-height: normal;">After hardy works, I found it's because empty structure rte_eth_txmode. In gcc the size of rte_eth_txmode is 0. But in g++ it's 1. </pre><pre style="line-height: normal;">I known the empty structure is <a href="http://gcc.gnu.org/onlinedocs/gcc-4.7.3/gcc/Empty-Structures.html#Empty-Structures">a gcc extension</a>. But it isn't be permitted by <a href="http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf">C99</a> (6.7.2.1/7 "Structure and union specifiers": "If the struct-declaration-list contains no named members, the behavior is undefined"). </pre><pre style="line-height: normal;">Can we change the struct rte_eth_txmode ? </pre><pre style="line-height: normal;">Such as : </pre><pre style="line-height: normal;">struct rte_eth_txmode { int reserve[]; };   /* sizeof(struct rte_eth_txmode) == 0 in gcc and g++ */</pre></div>