From: amitkuma Date: Tue, 1 Aug 2017 19:18:46 +0000 (+0530) Subject: rbd: Uninitialized Non-static class member reopen X-Git-Tag: ses5-milestone10~3^2~2^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F16729%2Fhead;p=ceph.git rbd: Uninitialized Non-static class member reopen Fixed: ** CID 1402141 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 2. uninit_member: Non-static class member reopen is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Amit Kumar amitkuma@redhat.com --- diff --git a/src/librbd/librbd.cc b/src/librbd/librbd.cc index 542dd28ab38..999ac25233a 100644 --- a/src/librbd/librbd.cc +++ b/src/librbd/librbd.cc @@ -104,7 +104,6 @@ struct C_AioCompletion : public Context { struct C_OpenComplete : public C_AioCompletion { librbd::ImageCtx *ictx; void **ictxp; - bool reopen; C_OpenComplete(librbd::ImageCtx *ictx, librbd::io::AioCompletion* comp, void **ictxp) : C_AioCompletion(ictx, librbd::io::AIO_TYPE_OPEN, comp),