mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
Merge pull request #25199 from tchaikov/wip-mgr-silence-py2-warning
mgr: silence GCC warning Reviewed-by: Casey Bodley <cbodley@redhat.com> Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
commit
dc6176e3b8
@ -160,7 +160,8 @@ void ActivePyModule::config_notify()
|
||||
Gil gil(py_module->pMyThreadState, true);
|
||||
dout(20) << "Calling " << py_module->get_name() << ".config_notify..."
|
||||
<< dendl;
|
||||
auto remoteResult = PyObject_CallMethod(pClassInstance, "config_notify",
|
||||
auto remoteResult = PyObject_CallMethod(pClassInstance,
|
||||
const_cast<char*>("config_notify"),
|
||||
(char*)NULL);
|
||||
if (remoteResult != nullptr) {
|
||||
Py_DECREF(remoteResult);
|
||||
|
Loading…
Reference in New Issue
Block a user