]> git.proxmox.com Git - mirror_ovs.git/commitdiff
tests: Fix MSVC compiler error on test-ovn.c
authorAlin Gabriel Serdean <aserdean@ovn.org>
Mon, 11 Sep 2017 19:36:53 +0000 (22:36 +0300)
committerAlin Gabriel Serdean <aserdean@ovn.org>
Mon, 11 Sep 2017 20:30:07 +0000 (23:30 +0300)
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>
tests/test-ovn.c

index 148ce122d38587a651f7dc7b09ce7032c659d6a1..345fd47b2e340c83e5b4450480c9a2ae91a40971 100644 (file)
@@ -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);