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,
> 0xff, 0xff }}};
>
> Alowed:
> static const struct eth_addr b = {{{ 0xff, 0xff, 0xff, 0xff, 0xff,
> 0xff }}};
> *An extra curly brace is required for GCC in case the struct contains
> a union.
>
> Signed-off-by: Shashank Ram <[email protected]>
> Tested-by: Yi-Hung Wei <[email protected]>
Applied to master and branch-2.9, thanks!
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev