From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH] ethdev: fix empty struct rte_eth_txmode Date: Wed, 12 Jun 2013 16:46:10 +0200 Message-ID: <51B889B2.9050105@6wind.com> References: <201306121539.49552.thomas.monjalon@6wind.com> <1371047405-29432-1-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Thomas Monjalon Return-path: In-Reply-To: <1371047405-29432-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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