From 8101f980dabbba0846a641446244a4fc9aa1aaf1 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 8 May 2014 16:59:45 +0200 Subject: [PATCH] rbd-fuse.c: fix -Wmissing-field-initializers Init image_name with NULL to fix: rbd_fuse/rbd-fuse.c:57:63: warning: missing field 'image_name' initializer [-Wmissing-field-initializers] struct rbd_options rbd_options = {"/etc/ceph/ceph.conf", "rbd"}; Signed-off-by: Danny Al-Gaaf --- src/rbd_fuse/rbd-fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rbd_fuse/rbd-fuse.c b/src/rbd_fuse/rbd-fuse.c index f11808e65b4..cec4495e1cf 100644 --- a/src/rbd_fuse/rbd-fuse.c +++ b/src/rbd_fuse/rbd-fuse.c @@ -54,7 +54,7 @@ struct rbd_openimage { #define MAX_RBD_IMAGES 128 struct rbd_openimage opentbl[MAX_RBD_IMAGES]; -struct rbd_options rbd_options = {"/etc/ceph/ceph.conf", "rbd"}; +struct rbd_options rbd_options = {"/etc/ceph/ceph.conf", "rbd", NULL}; #define rbdsize(fd) opentbl[fd].rbd_stat.rbd_info.size #define rbdblksize(fd) opentbl[fd].rbd_stat.rbd_info.obj_size