Cleanup #52753
Cleanup #52752: fix warnings
rbd cls : centos 8 warning
% Done:
0%
Tags:
Backport:
Reviewed:
Description
home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7800-gd35920da/rpm/el8/BUILD/ceph-17.0.0-7800-gd35920da/src/cls/rbd/cls_rbd_types.h:539:8: warning: '*((void*)(&<anonymous>)+8).cls::rbd::MirrorSnapshotNamespace::state' may be used uninitialized in this function [-Wmaybe-uninitialized] 539 | struct MirrorSnapshotNamespace { | ^~~~~~~~~~~~~~~~~~~~~~~ /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7800-gd35920da/rpm/el8/BUILD/ceph-17.0.0-7800-gd35920da/src/cls/rbd/cls_rbd_types.h: In static member function 'static void librbd::journal::EventEntry::generate_test_instances(std::__cxx11::list<librbd::journal::EventEntry*>&)': /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7800-gd35920da/rpm/el8/BUILD/ceph-17.0.0-7800-gd35920da/src/cls/rbd/cls_rbd_types.h:539:8: warning: '*((void*)(&<anonymous>)+16).cls::rbd::MirrorSnapshotNamespace::state' may be used uninitialized in this function [-Wmaybe-uninitialized] 539 | struct MirrorSnapshotNamespace { | ^~~~~~~~~~~~~~~~~~~~~~~ /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7800-gd35920da/rpm/el8/BUILD/ceph-17.0.0-7800-gd35920da/src/cls/rbd/cls_rbd_types.h:539:8: warning: '*((void*)(&<anonymous>)+16).cls::rbd::MirrorSnapshotNamespace::state' may be used uninitialized in this function [-Wmaybe-uninitialized] 539 | struct MirrorSnapshotNamespace { | ^~~~~~~~~~~~~~~~~~~~~~~ /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7800-gd35920da/rpm/el8/BUILD/ceph-17.0.0-7800-gd35920da/src/cls/rbd/cls_rbd_types.h:539:8: warning: '*((void*)(&<anonymous>)+16).cls::rbd::MirrorSnapshotNamespace::state' may be used uninitialized in this function [-Wmaybe-uninitialized] 539 | struct MirrorSnapshotNamespace { | ^~~~~~~~~~~~~~~~~~~~~~~
History
#1 Updated by Deepika Upadhyay over 2 years ago
- Pull request ID set to 43396
#2 Updated by Ilya Dryomov over 1 year ago
Looks like this warning is no longer there with a newer g++:
#3 Updated by Ilya Dryomov over 1 year ago
- Status changed from New to Rejected
- Assignee set to Ilya Dryomov