summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Gabriel Serdean <aserdean@ovn.org>2017-09-11 22:36:53 +0300
committerAlin Gabriel Serdean <aserdean@ovn.org>2017-09-11 23:30:07 +0300
commitd5c70d4bcc344ae10a644b83f1790a0235871efc (patch)
tree1db07da78593ccf5c2c5ab5add51d354f4f139ff
parent4ae4a08ba5151907a2cbc88ce96684fb9dec1183 (diff)
downloadopenvswitch-d5c70d4bcc344ae10a644b83f1790a0235871efc.tar.gz
tests: Fix MSVC compiler error on test-ovn.c
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@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
-rw-r--r--tests/test-ovn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-ovn.c b/tests/test-ovn.c
index 148ce122d..345fd47b2 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);