MSVC 2013 does not like designated initializers when structs are initialized inside structs.
Signed-off-by: Gurucharan Shetty <gshe...@nicira.com> --- CodingStyle.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodingStyle.md b/CodingStyle.md index 0a441e0..54dadf1 100644 --- a/CodingStyle.md +++ b/CodingStyle.md @@ -549,8 +549,8 @@ global variables. on non-C99 environments. For example, if bool is implemented as a typedef of char and some_value = 0x10000000. - * Designated initializers (e.g. "struct foo foo = {.a = 1};" and - "int a[] = {[2] = 5};"). + * Designated initializers are NOT okay as they are not supported + well in MSVC 2013. * Mixing of declarations and code within a block. Please use this judiciously; keep declarations nicely grouped together in the -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev