Bug #21094
closedwarning on rawhide group_pool uninitialized
0%
Description
In file included from /root/ceph/src/cls/rbd/cls_rbd_types.cc:5:0:
/root/ceph/src/cls/rbd/cls_rbd_types.h: In member function ‘void cls::rbd::SnapshotNamespaceOnDisk::decode(ceph::buffer::list::iterator&)’:
/root/ceph/src/cls/rbd/cls_rbd_types.h:248:8: warning: ‘<anonymous>.cls::rbd::GroupSnapshotNamespace::group_pool’ may be used uninitialized in this function [-Wmaybe-uninitialized]
struct GroupSnapshotNamespace {
^~~~~~~~~~~~~~~~~~~~
/root/ceph/src/cls/rbd/cls_rbd_types.h:248:8: warning: ‘<anonymous>.cls::rbd::GroupSnapshotNamespace::group_pool’ may be used uninitialized in this function [-Wmaybe-uninitialized]
struct GroupSnapshotNamespace {
^~~~~~~~~~~~~~~~~~~~
/root/ceph/src/cls/rbd/cls_rbd_types.h:248:8: warning: ‘*((void*)(& temp)+8).cls::rbd::GroupSnapshotNamespace::group_pool’ may be used uninitialized in this function [-Wmaybe-uninitialized]
struct GroupSnapshotNamespace {
^~~~~~~~~~~~~~~~~~~~
[ 20%] Building CXX object src/cls/CMakeFiles/cephd_cls_base.dir/rbd/cls_rbd_client.cc.o