mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 18:26:47 +08:00
* python/py-utils.c (gdb_pymodule_addobject): Cast away const.
This commit is contained in:
@ -436,7 +436,8 @@ gdb_pymodule_addobject (PyObject *module, const char *name, PyObject *object)
|
||||
int result;
|
||||
|
||||
Py_INCREF (object);
|
||||
result = PyModule_AddObject (module, name, object);
|
||||
/* Python 2.4 did not have a 'const' here. */
|
||||
result = PyModule_AddObject (module, (char *) name, object);
|
||||
if (result < 0)
|
||||
Py_DECREF (object);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user