[ovs-dev] [PATCH] tests: Fix MSVC compiler error on test-ovn.c
Alin Gabriel Serdean
aserdean at ovn.org
Mon Sep 11 19:36:53 UTC 2017
MSVC doesn't like an empty initializer for a flexible array.
Add a zero initializer to keep the compiler happy.
Fixes current build on Windows.
Signed-off-by: Alin Gabriel Serdean <aserdean at ovn.org>
---
tests/test-ovn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test-ovn.c b/tests/test-ovn.c
index 148ce12..345fd47 100644
--- a/tests/test-ovn.c
+++ b/tests/test-ovn.c
@@ -202,7 +202,7 @@ create_addr_sets(struct shash *addr_sets)
static const char *const addrs3[] = {
"00:00:00:00:00:01", "00:00:00:00:00:02", "00:00:00:00:00:03",
};
- static const char *const addrs4[] = {};
+ static const char *const addrs4[] = { 0 };
expr_addr_sets_add(addr_sets, "set1", addrs1, 3);
expr_addr_sets_add(addr_sets, "set2", addrs2, 3);
--
2.10.2.windows.1
More information about the dev
mailing list