aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2020-12-14 13:36:07 +0000
committerGitHub <noreply@github.com>2020-12-14 13:36:07 +0000
commitd7157efb22c9fc06f85e40f0e6b6c5e16dc5e8e2 (patch)
tree6d2129760c71cf0be34d098515250c1ca49c8dbc /test
parent0e2a9fe81ace3ae06d6a931833bea367f7dda26b (diff)
downloadlibvfio-user-d7157efb22c9fc06f85e40f0e6b6c5e16dc5e8e2.zip
libvfio-user-d7157efb22c9fc06f85e40f0e6b6c5e16dc5e8e2.tar.gz
libvfio-user-d7157efb22c9fc06f85e40f0e6b6c5e16dc5e8e2.tar.bz2
unit-tests: fix GCC4 build (#193)
Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test')
-rw-r--r--test/unit-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit-tests.c b/test/unit-tests.c
index d4ac1ef..347b7f7 100644
--- a/test/unit-tests.c
+++ b/test/unit-tests.c
@@ -405,7 +405,7 @@ test_vfu_ctx_create(void **state __attribute__((unused)))
vfu_ctx_t *vfu_ctx = NULL;
vfu_pci_hdr_id_t id = { 0 };
vfu_pci_hdr_ss_t ss = { 0 };
- vfu_pci_hdr_cc_t cc = { 0 };
+ vfu_pci_hdr_cc_t cc = { { 0 } };
vfu_cap_t pm = {.pm = {.hdr.id = PCI_CAP_ID_PM}};
vfu_cap_t *caps[] = { &pm };