Project

General

Profile

Bug #20838

warning: ‘<anonymous>.cls::rbd::GroupSnapshotNamespace::group_pool’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Added by Amit Kumar over 6 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
build
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

  1. pwd
    /root/ceph/build
  2. make -j4
    [ 10%] Building CXX object src/tools/rbd_mirror/CMakeFiles/rbd_mirror_types.dir/instance_watcher/Types.cc.o
    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 {

History

#1 Updated by Jos Collin over 6 years ago

  • Status changed from New to Rejected

This is a gcc bug. Please see: https://github.com/ceph/ceph/pull/15553

Also available in: Atom PDF