[ovs-dev] [PATCH] ofp-actions: Fix build on earlier GCC.

Joe Stringer joestringer at nicira.com
Fri Oct 16 23:27:09 UTC 2015


On 16 October 2015 at 15:46, Pravin Shelar <pshelar at nicira.com> wrote:
> On Fri, Oct 16, 2015 at 3:31 PM, Joe Stringer <joestringer at nicira.com> wrote:
>> GCC4.4 gets confused by anonymous fields + flexible fields, complains:
>> lib/ofp-actions.h:510: error: flexible array member in otherwise empty
>> struct
>> lib/ofp-actions.h:512: error: bit-field ‘build_assert_failed’ width not
>> an integer constant
>> lib/ofp-actions.h:514: error: bit-field ‘build_assert_failed’ width not
>> an integer constant
>>
>> Fix the problem by specifying the actions length as zero.
>>
>> Reported-by: Pravin B Shelar <pshelar at nicira.com>
>> Signed-off-by: Joe Stringer <joestringer at nicira.com>
>
> Acked-by: Pravin B Shelar <pshelar at nicira.com>

Thanks, I applied this to master.



More information about the dev mailing list