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:
Kefu Chai 2018-11-22 11:34:05 +08:00 committed by GitHub
commit dc6176e3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);