Actions
Bug #67320
openwarning: ‘this’ pointer is null in NVMeofGwMap::blocklist_gw()
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:
Description
with gcc 14.1.1:
[57/169] Building CXX object src/mon/CMakeFiles/mon.dir/NVMeofGwMap.cc.o
ceph/src/mon/NVMeofGwMap.cc: In member function ‘int NVMeofGwMap::blocklist_gw(const NvmeGwId&, const NvmeGroupKey&, NvmeAnaGrpId, epoch_t&, bool)’:
ceph/src/mon/NVMeofGwMap.cc:589:50: warning: ‘this’ pointer is null [-Wnonnull]
589 | mon->nvmegwmon()->request_proposal(mon->osdmon());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from ceph/src/mon/NVMeofGwMon.h:17,
from ceph/src/mon/NVMeofGwMap.cc:16:
ceph/src/mon/PaxosService.h:256:8: note: in a call to non-static member function ‘void PaxosService::request_proposal(PaxosService*)’
256 | void request_proposal(PaxosService *other) {
| ^~~~~~~~~~~~~~~~
ceph/src/mon/NVMeofGwMap.cc: In member function ‘virtual void CMonRequestProposal::finish(int)’:
ceph/src/mon/NVMeofGwMap.cc:547:46: warning: ‘this’ pointer is null [-Wnonnull]
547 | m->mon->nvmegwmon()->request_proposal(m->mon->osdmon());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
ceph/src/mon/PaxosService.h:256:8: note: in a call to non-static member function ‘void PaxosService::request_proposal(PaxosService*)’
256 | void request_proposal(PaxosService *other) {
| ^~~~~~~~~~~~~~~~
No data to display
Actions