From: Danny Al-Gaaf Date: Sat, 14 Mar 2015 00:16:31 +0000 (+0100) Subject: librbd/AioRequest.h: fix UNINIT_CTOR X-Git-Tag: v9.0.0~95^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48f18ea0e1c4c6de1921ea2359448deb761461e7;p=ceph.git librbd/AioRequest.h: fix UNINIT_CTOR Fix for: CID 1274319: Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member m_object_state is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/librbd/AioRequest.h b/src/librbd/AioRequest.h index 60be8fc978ee..eda9a84a9c0b 100644 --- a/src/librbd/AioRequest.h +++ b/src/librbd/AioRequest.h @@ -229,7 +229,8 @@ namespace librbd { object_no, 0, 0, objectx, object_overlap, snapc, snap_id, completion, - true) { + true), + m_object_state(OBJECT_NONEXISTENT) { } virtual ~AioRemove() {}