[dpdk-dev] Clang reporting a problem when adding another member initialization.

Wiles, Roger Keith keith.wiles at windriver.com
Mon Oct 6 16:55:03 CEST 2014


On Oct 6, 2014, at 3:54 AM, Thomas Monjalon <thomas.monjalon at 6wind.com> wrote:

> 2014-10-03 21:05, Wiles, Roger Keith:
>> I run into a problem with Clang report problem when I tried to add
>> another member to the static initializer of the following in file
>> ixgbe_rxtx_vec.c
> [...]
>> Then I removed the {} and it now builds. Is this a result of the
>> changes to the mbuf structure and Clang being picky?
>> 
>> Should I submit a patch to remove the ‘{ }’ values?
> 
> You should check this thread:
> 	http://dpdk.org/ml/archives/dev/2014-September/005504.html
> 
> You may be hitting a compiler bug.
> 

Is the placement of the comma in the code the right location, it just does not look right to me?
We can leave it as is, but we should have added some comment to the code to explain this one bug.

> -- 
> Thomas

Keith Wiles, Principal Technologist with CTO office, Wind River mobile 972-213-5533



More information about the dev mailing list