Re: [ovs-dev] [PATCH] openvswitch/types.h: Drop the member name in initializer macro

2018-01-25 Thread Ben Pfaff
On Thu, Jan 25, 2018 at 10:12:08AM -0800, Shashank Ram wrote: > MSVC++ compiler does not allow initializing a struct while > explicitly initializing a member in the struct. > > Not allowed: > static const struct eth_addr a = {{ .ea= { 0xff, 0xff, 0xff, 0xff, >

[ovs-dev] [PATCH] openvswitch/types.h: Drop the member name in initializer macro

2018-01-25 Thread Shashank Ram
MSVC++ compiler does not allow initializing a struct while explicitly initializing a member in the struct. Not allowed: static const struct eth_addr a = {{ .ea= { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }}}; Alowed: static const struct eth_addr b = {{{